TradingView
kriswaters
9 lut 2021 08:11

Donchian Channels Strategy by KrisWaters 

Bitcoin / TetherUSBinance

Opis

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.

Komentarze
AAP1976
Hello, I'd like to draw your attention to a small bug. Qty is getting wrongly printed many instances, distorting the backtest results.
makwanadushyant960010
great strategy
Could you please add reverse the position option for long to short and short to long i am seeing a position sizing problem, in position size its double the lot size while short from long and again double lot size going long from short in fix lot trading system, it will be great help if you add reverse trade option. Thank you.
sickysickybrah
This is a great script thank you!

Have you tested this with stop losses and/or trailing stop losses? If so what results did you see?
kriswaters
@sickysickybrah, thanks for the comment. I think without stop-loss rule strategy works better. Not tested with trailing stop, maybe someone will do it for us and share the results.
slatrader
@kriswaters, Thank you for publishing it, it's a very interesting work. Tell me how you calculate the size of the position to buy (or sell)
kriswaters
@slatrader, initial capital = 1000$, 100% equity on every trade. These values writing on strategy() function call
slatrader
@kriswaters, Thank you
Więcej