Guide
How does the Strategy Template - V2 strategy work ?
The Strategy Template - V2 is a sophisticated trend-following strategy that uses Donchian channels to establish a trend bias and dictate entry and exit conditions. It builds upon its predecessor by integrating Weekly and Daily Donchian channels:
- Trend Bias: A long bias is determined if the 40-day Donchian channel is completely within the upper portion of the 40-week Donchian channel. Conversely, a short bias is signaled when the 40-day Donchian channel is fully in the lower portion of the 40-week channel.
- Entry Condition: Entries are taken only in the direction of the trend bias. For a long bias, an entry signal is generated when the price reaches a new 40-day high, and for a short bias, a signal is generated when the price hits a new 40-day low.
- Exit Condition: Exits are based on indications of a potential trend failure. In a long position, hitting a 40-day low triggers an exit signal, and for a short trade, reaching a 40-day high prompts an exit.
The strategy also demonstrates various entry and exit types like market, stop, and limit orders and includes activation of take profit levels based on risk/reward calculations. Traders can utilize parts of this code as a template to craft their own strategies, borrowing from the established parameters, methods, and trade instructions provided.