Type/to search

Turtle Trading Decision System

Cryptocurrency
Created: 2024-02-29 14:28:25
Last modified: 2 years ago
1
Follow
1777
Followers

img

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:

  1. 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.

  2. Risk management: Use money management and stop loss to control single and overall loss risks.

  3. Pyramiding management: Appropriate pyramiding can obtain additional profits from trends.

  4. Integrity: Combining money management, stop loss management and pyramiding management makes the decision system more complete.

  5. 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:

  1. 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.

  2. 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.

  3. 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:

  1. Add filters: Detect the momentum of price breakouts to filter out some false breakouts.

  2. Optimize stop loss strategies: How to reasonably track stop losses and strike a balance between protecting profits and reducing unnecessary stop losses.

  3. Parameter optimization by market: Optimize parameter combinations for the characteristics of different varieties.

  4. 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.

Source
Pine
/*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
Strategy parameters
Strategy parameters
From Date/开始日期
To Date/结束日期
Enter Mode/进场系统
Entry Length/系统1进场长度
Exit Length/系统2出场长度
Mode2 Entry Length/系统2进场长度
Mode2 Exit Length/系统2出场长度
ATR Period/计算ATR的周期
Risk Per Trade/每笔交易的风险,0.02就是2%
Initial Stop ATR Multiple/止损使用的ATR倍数
Pyramid ATR Multiple/加仓使用的ATR倍数
Max Units/最大头寸单位数
Highlighter On/Off ?/是否高亮显示
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)