Type/to search

Dual Moving Average Intelligent Tracking Trading Strategy

Cryptocurrency
Created: 2024-02-18 15:58:08
Last modified: 2 years ago
1
Follow
1781
Followers

img

Overview

The dual moving average intelligent tracking trading strategy is a trend following strategy based on moving averages and specific indicators. The strategy uses two moving averages with different parameter settings to build a channel and combines the OTT indicator to set the upper and lower limits of the channel to intelligently track price trends. When prices break through the channel, buy or sell operations are executed.

Strategy Principle

The core methodology of this strategy is to construct an adaptive channel using two moving averages and the OTT indicator, specifically:

  1. Calculate the fast line MAvg using CLOSE and custom moving average as input, with a length of 5 periods;

  2. Calculate the long line position LongStop and short line position ShortStop for the channel based on MAvg and preset percentage;

  3. Calculate the channel stop loss MT in OTT indicator, and channel price OTT based on long/short direction;

  4. Generate trading signals when price breaks through OTT.

The above process enables real-time tracking of price trend changes, generating trading signals.

Strategy Advantages

The advantages of this strategy include:

  1. The dual moving average channel structure effectively captures price trends;
  2. OTT indicator sets channel stop loss to control risks;
  3. Adaptive channel structure responds quickly to price changes;
  4. Flexible parameter tuning for different products and timeframes.

Strategy Risks

There are also some risks:

  1. Dual moving averages can form divergence resulting in false signals;
  2. Improper OTT parameter settings may be too aggressive or conservative;
  3. The strategy relies solely on technical indicators without considering fundamentals.

Risks can be addressed through parameter optimization, integrating other indicators and fundamentals filters.

Optimization Directions

The strategy can be optimized in several aspects:

  1. Optimize moving average parameters for proper product and timeframes;
  2. Optimize channel width parameters balancing sensitivity and stability;
  3. Add filters based on trading volume;
  4. Set direction filters based on fundamentals.

Summary

In summary, this is a trend following strategy based on a dual moving average channel and OTT indicator. The core idea is constructing an adaptive channel and generating signals when prices breakout. The strategy has merits but also room for improvements. With parameter tuning and logic optimization, it has the potential to become an efficient quant trading strategy worth deploying.

Source
Pine
/*backtest
start: 2023-02-11 00:00:00
end: 2024-02-17 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
strategy(title="BugRA_Trade_Strategy", shorttitle="BugRA_Trade_Strategy", overlay=true)

// Kullanıcı Girdileri
Strategy parameters
Strategy parameters
Period
Sihirli Yüzde
Hareketli Ortalama Türü
Kanal Periyodu
Averaj Uzunluğu
Başlangıç Tarihi (YYYYMMDD)
Bitiş Tarihi (YYYYMMDD)
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)