OPEN-SOURCE SCRIPT

Support and Resistance levels - DMI - DI trailing stop lines

This can be used to compliment the Directional Movement Index if used as a standalone trading system. In addition to using the ADX and DI lines, a trailing stop can be used when the DI lines cross. If the plus line is above to show a buy signal, then the low of the price of when which the cross took place is used as a trailing stop. If the minus line is above to show a sell signal, then the high of the price of when which the cross took place is used as a trailing stop. This helps cut losses sooner whenever the price would end up going through these trailing stops or support/resistance levels yet the DMI system would show an upward or downward move.
ADXDMIPivot PointsSupport and ResistancetrailingstopVolatility Stop

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