Type/to search

Turtle Trading Strategy Based on Donchian Channels

Cryptocurrency
Created: 2024-02-26 14:35:02
Last modified: 2 years ago
1
Follow
1781
Followers

img

Overview

The Tang Anqi Turtle Trading Strategy is a highly simplified version of the original Turtle Trading Strategy. It is very different from the original Turtle strategy. The strategy uses two Donchian Channels, a fast channel and a slow channel. The channel periods are set by the user, with default values of 20 bars for the fast channel and 50 bars for the slow channel. The strategy utilizes the upper and lower bands of the slow channel to entry trades and the middle band of the fast channel to set stop loss.

Strategy Logic

The core logic of this strategy is:

  1. Calculate the fast Donchian Channel: The upper band is the highest high over the past fast bars, the lower band is the lowest low, and the middle band is the average of the upper and lower bands.

  2. Calculate the slow Donchian Channel: The upper band is the highest high over the past slow bars, the lower band is the lowest low.

  3. When there is no position, a long signal is triggered when price touches the upper band of the slow channel, and a short signal is triggered when price touches the lower band of the slow channel.

  4. After opening a position, the middle band of the fast channel is used as the stop loss.

  5. Close the position when there is an opposite signal as the opening signal during the holding period.

Advantage Analysis

The advantages of this strategy are:

  1. Simple rules easy to implement. Donchian Channels and moving stop loss are easy to understand, suitable for beginners.

  2. Customizable parameters. Users can adjust parameters based on trading products and timeframes to adapt to different market environments.

  3. Few conflicting trading signals. Only relies on price breakouts of channel bands, avoids false signals from common indicators.

  4. Automatic stop loss management. The moving stop loss based on the fast channel middle band can limit losses on single trades.

Risk Analysis

The risks facing this strategy include:

  1. More stop loss when trend is unclear. This affects the profitability of the strategy.

  2. Larger drawdowns possible. When trend reverses, floating profits in the previous trend direction will realize into losses.

  3. Improper parameter settings lead to over-aggressiveness or over-conservativeness. Proper values need to be found through repeated backtesting.

  4. High dependence on automated trading. Server stability is important to avoid exceptions leading to failure in automated trading.

To reduce the above risks, parameters can be optimized, position sizing can be appropriately limited, and risk management modules can be added.

Optimization Directions

The strategies can be improved in the following aspects:

  1. Add filters for entry signals to avoid catching trend reversal signals. For example, use trend indicators to determine trend direction.

  2. Optimize parameters like channel periods and position sizing to fit different trading instruments better.

  3. Add risk management modules like maximum drawdown limits and daily loss limits to prevent excessive losses in extreme events.

  4. Improve stop loss strategies. For example, adopt trailing stop loss to make stops more adaptive to market trends.

Conclusion

In summary, the Tang Anqi Turtle Trading Strategy is a simple trend following system. Its advantages lie in its ease of understanding and automation. But it also carries certain risks, and further optimizations on parameters and risk management are needed to make it more practical. With measures like parameter tuning, adding filters, and risk control modules, the strategy can achieve better results in live trading.

Source
Pine
/*backtest
start: 2024-01-26 00:00:00
end: 2024-02-15 00:00:00
period: 4h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//Noro
//2020

//@version=4
Strategy parameters
Strategy parameters
Long
Short
Lot long, %
Lot short, %
fast
slow
Show offset
Show lines
Show label (drawdown)
Show background
From Year
To Year
From Month
To Month
From day
To day
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)