Paint Trending Bars

This indicator paints bars with the same color for as long as the trend remains. It does not change the bar shape like Heikin-Ashi indicator does, which I do not prefer. The simple logic of the indicator is to compare Close(current) with (Average Close - ATR*Percent). If greater, bullish trend. If less, bearish trend. You have two parameters to control the look of the chart. One is how many bars you want to look back for the average close, and the other is how much (in terms of percent) ATR you want to include in the formula. You can choose 0% ATR if you want to and it becomes a simple comparison between current close and the average close of certain amount of bars.

Generally, the more bars you use the longer the trend remains. The less bars you use the more frequent changes of the trend. Likewise, the more ATR (say 1 or 100%) applied the less changes of the trend. I attached a screenshot with looking back bars set at 6 and 20, respectively. ATR was 0.5 for both.

Again, big THANKS to Chelsea, Kate and eDanny. It's your baby.

Last but not the least, c stands for Chelsea, d for eDanny and k for Kate.

Created By zhawenx
NinjaTrader Version 8
File Size 5.0 KB
Create Date 09/08/2020
# of Downloads 1533

Importing to NinjaTrader 8 is Easy!

To import your 3rd party app or add-on to NinjaTrader, simply follow these 3 steps:

  1. Download the app or add-on file to your desktop
  2. From the NinjaTrader Control Center window, select the menu Tools > Import > NinjaScript Add-On…
  3. Select the downloaded file from your desktop

Questions?

Visit the NinjaScript File Sharing discussion in the NinjaTrader user forum to interact with fellow traders and the NinjaTrader support team.