OPEN-SOURCE SCRIPT

DI-CD with ADX

New method of visualising the directional index values as calculated by BeikabuOyaji. Uses the slightly incorrect version of calculating DI+ and DI- as per the original script, but these seem to work.

Bars are coloured based on the higher DI value, green shades for DI+ being higher and red shades for DI-. The brighter coloured bars indicate that the higher DI value is increasing compared to the last bar while the lower one is decreasing.
Average Directional Index (ADX)

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