Type/to search

Gradual Moving Average Trend Following Strategy

Cryptocurrency
Created: 2023-10-26 17:08:43
Last modified: 3 years ago
1
Follow
1781
Followers

img

Overview

The Gradual Moving Average Trend Following Strategy uses multiple moving averages of different periods to capture price trend changes, combined with oscillator indicators to determine overbought and oversold areas, forming a low-buying and high-selling trend following trading strategy. This strategy is suitable for medium-to-long term holding positions to track significant trending markets.

Strategy Logic

The strategy employs multiple sets of moving averages, like 18-, 26-, 36-period MAs, to capture price trends. When shorter MAs cross above longer MAs, it signals an upward trend, thus going long. When shorter MAs cross below longer MAs, it indicates a downward trend, thus going short.

Meanwhile, oscillator indicators like MACD, RSI, EFI are used to identify overbought and oversold conditions. For example, MACD turning from negative to positive suggests going long, while turning from positive to negative suggests going short. RSI retreating from high levels is a signal for shorting, while rebounding from low levels is a signal for going long. EFI below 0 means going long, while above 0 means going short.

Entry rules:

Long: Short MA crossover up Long MA AND MACD>0 AND RSI rebounds from lows AND EFI<0

Short: Short MA crossover down Long MA AND MACD<0 AND RSI retreats from highs AND EFI>0

Stop loss rules:

Long SL: EFI above threshold AND price breaks below specified MA

Short SL: EFI below threshold AND price breaks above specified MA

Advantages

  1. Multiple MAs capture major trend change points.

  2. Oscillator combos avoid chasing highs and selling lows.

  3. SL rules consider both trends and money flow, effectively controlling risks.

  4. Optimized parameters through extensive backtesting, adaptive to most market environments.

  5. Medium trading frequency, stable signals, suitable for long-term trend tracking.

Risks

  1. Sudden crashes may invalidate SL, SL range should be widened.

  2. Too many signals during ranging markets, parameters should be adjusted.

  3. Holding too long may amplify losses, shorter MAs can take quicker SL.

  4. Backtest overfitting, real trading results pending validation.

Improvements

  1. Optimize parameters for higher returns and suitable frequency.

  2. Add machine learning algorithms to dynamically optimize parameters.

  3. Build adaptive SL mechanism based on different market conditions.

  4. Add more filters to determine better entry signals.

  5. Incorporate position sizing strategies to control single bet size.

Conclusion

The Gradual Moving Average Trend Following Strategy effectively tracks major trends by identifying the trend direction with multiple MAs and entering on filtered signals, achieving stable profits through long-term holding. The strategy has shown robustness through parameter optimization but still requires improvements in risk control and adaptivity to reduce drawdowns and increase win rate. Overall, the core philosophy demonstrates strong potential for further research and application.

Source
Pine
/*backtest
start: 2023-09-25 00:00:00
end: 2023-10-25 00:00:00
period: 1h
basePeriod: 15m
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/
// © murdocksilva

//@version=5
Strategy parameters
Strategy parameters
longitud_sma
Length1
Length2
Length3
Length4
Length5
Length6
Length7
Length8
Length9
Length10
Length11
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)