OPEN-SOURCE SCRIPT

ATR-ranged Donch on 15min

// This is a simple Mean Reversion & Breakout Indicator.
// A Donchian Channel is plotted. A threshold equal to 0.25 of Daily ATR.
// If price reverses from this threshold, then it can be taken as possible Mean Reversion.
// If price crosses the previous Donchian levels, it can be taken as a possible breakout.
// Typical of such strategy is the whipsaw effect when price movement is just flat.
// I have marked the region where the lower and higher thresholds are closer to be an indicative of whipsaw.
// But it is not really effective to avoid whipsaw.
breakoutDonchian Channels (DC)meanreversion

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