Turtle Trading Decision System
Overview
The Turtle Trading Decision System is a trend-following trading strategy based on the breakout theory. It generates trading signals by moving averages of highest and lowest prices over specific periods to identify potential trends. Trading signals are generated when prices break out above or below the highest or lowest prices over the specified periods. The strategy also incorporates trailing stops, pyramiding, and money management modules to form a relatively complete decision system.
Strategy Principle
The core strategy signals of the Turtle Trading Decision System are generated by comparing the price with the highest prices over N1 periods and the lowest prices over N2 periods. A long signal is generated when the price crosses above the highest price over N1 periods. A short signal is generated when the price crosses below the lowest price over N2 periods. The shutdown mode is used to control new signal generation.
After opening a position, the price will be compared with the stop loss price in real time to generate trailing stop signals. Also, compare the price with the add-on line to generate pyramiding signals. Both stop loss price and add-on line are related to ATR.
When opening a position each time, the position unit is calculated by taking a certain percentage of the initial capital to avoid the impact of a single loss on the total capital. Single losses are limited within a certain range.
Advantage Analysis
The Turtle Trading Decision System has the following advantages:
-
Capture potential trends: By comparing prices with highest and lowest prices over periods to determine potential trend directions, potential price trends can be captured earlier.
-
Risk management: Use money management and stop loss to control single and overall loss risks.
-
Pyramiding management: Appropriate pyramiding can obtain additional profits from trends.
-
Integrity: Combining money management, stop loss management and pyramiding management makes the decision system more complete.
-
Simple and clear: The signal generation rules are simple and straightforward, easy to understand and verify.
Risk Analysis
The Turtle Trading Decision System also has some risks:
-
False breakout risk: Prices may have false breakouts above or below the highest or lowest prices, causing wrong signals. Parameters can be adjusted appropriately to filter out some false breakouts.
-
Trend reversal risk: There is a risk that the loss increases after pyramiding when prices reverse. The number of pyramiding should be limited appropriately and stops losses in time.
-
Parameter optimization risk: Parameters settings can vary greatly for different markets, parameters should be optimized separately for each market to reduce risks.
Optimization Directions
The Turtle Trading Decision System can also be optimized in the following aspects:
-
Add filters: Detect the momentum of price breakouts to filter out some false breakouts.
-
Optimize stop loss strategies: How to reasonably track stop losses and strike a balance between protecting profits and reducing unnecessary stop losses.
-
Parameter optimization by market: Optimize parameter combinations for the characteristics of different varieties.
-
Add machine learning: Use machine learning algorithms to assist in judging trend directions.
Summary
The Turtle Trading Decision System judges the potential trend direction by comparing prices with the highest and lowest prices over specified periods, and constructs the entire decision system with risk management modules. It has strong trend tracking capability, and also has some risks of false breakouts and parameter optimization. This strategy can serve as a basic model for quantitative trading, and be expanded and optimized on this basis to develop appropriate decision systems for yourself.
/*backtest
start: 2024-01-29 00:00:00
end: 2024-02-28 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © 李和邪
// 本脚本所有内容只适用于交流学习,不构成投资建议,所有后果自行承担。
//@version=5- 1

