christofferka

ADX Color Coded Bar

christofferka 已更新   
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.
版本注释:
Added the option to use another timeframe.
Changed the default threshold to 25.
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?