OPEN-SOURCE SCRIPT
Donchian Channels Strategy by KrisWaters

Doncian Channels is a trend tracking indicator developed by Richard Doncian. The upper line of the channel is determined by the highest value seen by the price in the defined period, the lower line of the channel is determined by the lowest value seen by the price in the defined period. The middle line takes the average value of the lower and upper channels.
Strategy Settings:
- Can apply only LONG positions.
- Can apply only SHORT positions.
- Use LONG/SHORT both.
- You can use ATR as a second exit condition. If ATR stop disabled, Donchian upper or lower channel value is use for the exit rule to long and short positions.
Strategy can be able to optimize by changing channel lengths and timeframe.
Strategy Settings:
- Can apply only LONG positions.
- Can apply only SHORT positions.
- Use LONG/SHORT both.
- You can use ATR as a second exit condition. If ATR stop disabled, Donchian upper or lower channel value is use for the exit rule to long and short positions.
Strategy can be able to optimize by changing channel lengths and timeframe.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Pine Script Code Generator:
getpinescript.com/
Optimize Your TradingView Strategies:
pinetune.app
Better Visual Analytics for Freelancers:
indiedash.app
Pine Script Job Proposals:
t.me/kriswaters
getpinescript.com/
Optimize Your TradingView Strategies:
pinetune.app
Better Visual Analytics for Freelancers:
indiedash.app
Pine Script Job Proposals:
t.me/kriswaters
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Pine Script Code Generator:
getpinescript.com/
Optimize Your TradingView Strategies:
pinetune.app
Better Visual Analytics for Freelancers:
indiedash.app
Pine Script Job Proposals:
t.me/kriswaters
getpinescript.com/
Optimize Your TradingView Strategies:
pinetune.app
Better Visual Analytics for Freelancers:
indiedash.app
Pine Script Job Proposals:
t.me/kriswaters
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.