OPEN-SOURCE SCRIPT

ADX & DI trend exhaustion

An EMA is applied to the ADX in order to catch the exhaustion of a trend (i.e. ADX line crossunder EMAADX line) or the possible formation of a new one. In the first case, we would wait a confirmation signal, which happens when the crossunder has a value greater then 50. A new trend is created when the difference between the ADX and the EMAADX is positive, with ADX greater then 20. As confirmation, we would have the DI+ greater then 20 e the DI- smaller then 20 (this would trigger a bullish sentiment, bearish for the opposite), consequently the histogram will be display in green (red in the bearish case).
Average Directional Index (ADX)directionalOscillatorstrend

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer