christofferka

ADX Color Coded Bar

I use the Average Directional Index quite a lot in my trading both manual and automatic trading so i thought i would make it a little easier for myself and others to see if the ADX is above or below a certain value and to allow space on the chart for other indicators. This is done by plotting a green and red bar, green when the ADX is above a certain value and red when the ADX is below it.

Trading in the direction of a strong trend reduces risk and increases profit potential. The ADX is used to determine when the price is trending strongly. In many cases, it is the ultimate trend indicator. After all, the trend is your friend. ADX is usually plotted as a single line with values ranging from a low of zero to a high of 100. ADX is non-directional and registers trend strength whether price is trending up or down.

When the value of the ADX is going up above 20 which is the threshold i like to use, it means that there is more likely to be a confident move. So if you get an entry signal when the ADX bar is red the price is more likely to be in an area of consolidation where fakeouts could happen. It might be a good idea to stay away from entering trades here or remember to take some profits early and set the stop loss to break even.

Keep in mind that the ADX is a lagging indicator and not leading.
Release Notes:
Added the option to use another timeframe.
Changed the default threshold to 25.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?