TradingCharts

What it does

This strategy follows trends with breakouts. It enters when price closes beyond the previous 20-bar high or low, and only in the direction of the EMA 100 trend. It exits when price closes beyond the 10-bar opposite channel, which acts like a trailing stop. A hard ATR stop is set at entry. The channel lengths, trend filter and shorts are all adjustable. It tends to take several small losses in sideways markets and make them back on the big trends.

How to use it

  • Open the charts and go to Indicators › My scripts › Shared with me (or search the Community library) and press Add to chart.
  • The code is protected by the author: the script runs on the chart with the source hidden.

Version history

  • v1 — 20 Nov, 01:06 pm · compiler 0.3.69

#donchian