RickK
Active member
I'm hoping to get a dialog started on this particular strategy to see if utilizing automated trading with it makes sense.
Intrigued by @tradegeek 's experience with the TOP Ultimate Breakout indicator ( https://usethinkscript.com/threads/need-help-with-top-ultimate-breakout-indicator.1243/page-2 post #35) I tried using it and.... failed miserably.
However, I decided to dig a little deeper to try to understand better what Donchian Channels could do and what strategies could be employed. Finally found the following youtube video that ended up leading me to some TOS strategy code here ( http://www.thetatrend.com/donchian-channel-breakout-strategy-thinkscript/ ) . Once I plugged in the strategies and included the FloatingPL indicator on my chart, I set the chart to 1m/30days to check the results.
I'm including a chart image (at the end) and a shared chart here so that no one has to go thru the process of searching/copying/pasting the 4 code bits for the long entry/exit and short entry/exits.
Explaining the chart: The strategy uses Donchian (setting 25) and a second Donchian (setting 50) . The blue line is the upper/lower for the Donchian 50. The magenta line is the upper lower for Donchian 25. The yellow line is the midline for Donchian 25. And the dashed line is the midline for Donchian 50. The shared chart can be found here: tos.mx/BHkdttM
Here's what I observed:
In the short period of time that I've been on this site, I've come to recognize the following contributors as solid traders, coders, strategists. I invite them to check this out and weigh in. Thanks! @BenTen ,@skynetgen , @blakecmathis , @tomsk , @horserider , @hockeycoachdoug .
Intrigued by @tradegeek 's experience with the TOP Ultimate Breakout indicator ( https://usethinkscript.com/threads/need-help-with-top-ultimate-breakout-indicator.1243/page-2 post #35) I tried using it and.... failed miserably.
I'm including a chart image (at the end) and a shared chart here so that no one has to go thru the process of searching/copying/pasting the 4 code bits for the long entry/exit and short entry/exits.
Explaining the chart: The strategy uses Donchian (setting 25) and a second Donchian (setting 50) . The blue line is the upper/lower for the Donchian 50. The magenta line is the upper lower for Donchian 25. The yellow line is the midline for Donchian 25. And the dashed line is the midline for Donchian 50. The shared chart can be found here: tos.mx/BHkdttM
Here's what I observed:
- In contrast to many indicators, the sweet spot for this strategy seems to be the 1m chart. I checked it against various tick charts, 5m, 10m, 15m, 30m, 1h, 4h (all on 30 day time periods other than the tick charts) and while the results were still green, the 1m setting seemed to perform the best by far.
- The strategy is set to buy/sell 100 shares (which I would like to modify for use with futures if someone could provide a bit of help) so I first tested it against the most widely traded stocks (AMZN, FB, AAPL, NFLX, GOOG, NVDA, ROKU) and the results were impressive, but not wildly so. Then I tried it with the futures. Of course, the calculations of running profits (on the FloatingPL) considered the 100 shares orders as 100 contracts. So, as you'll see inside the white circle on the chart image, I considered only 1% of the running profit of $1,757,775 to equate to 1 contract (1 contract / 100 shares). Thus, for 1 contract, a running total PL for /NQ over the last 30 days would equate to $17,577 (right?....correct me if I'm wrong here).
- The "30 days" on my 1m/30 chart actually went back to Nov 25 (today is 1/8/2020) and something to note is that there was drawdown every day straight from Nov 25 to Dec 2. Max cumulative drawdown (using the calculation noted in #2 above) was about $1750 until it went green and stayed green. Not really sure why this happened. (When I ran it on a 1m/20day and 1m/5day chart, as I recall, the early trades had drawdown.) Maybe someone could shed some light on this.
- Results for other futures were as follows: /ES ~$10,000, /YM ~ $7500, /RTY ~$6500, /GC ~ $6500, /CL ~$4800.
- The tests above were with after hours trading ON. /NQ's "30 day" result with after hours trading OFF was $13,787.
- Note: apparently Donchian Channels are the basis for the Turtle Trading System which, according to what I've read, does well in trending markets and not so well in ranging markets. However, I think the Turtle system was for traders using the daily chart (?). Using the 1m time frame, there will usually be at least a couple of "trends" each day (unless the market is just experiencing a dead day).
- Can we modify the code with an input to determine the size of the trade (1 contract, 2, 3, 4, etc.)?
- Does FloatingPL indicator account for trading fees?
- I don't really know what the inputs in the exit codes (length, ATR Length, ATR Measure) stand for and how results could be enhanced if they were modified. Possibly there is a way to fine tune the input settings or the code itself to provide even better results.
- Does anyone have any (other than the obvious) caveats about using an automated trading system?
- Is this worth pursuing? Or is there something technical or strategically wrong with the thesis?

In the short period of time that I've been on this site, I've come to recognize the following contributors as solid traders, coders, strategists. I invite them to check this out and weigh in. Thanks! @BenTen ,@skynetgen , @blakecmathis , @tomsk , @horserider , @hockeycoachdoug .
Last edited: