Type/to search

Dual Moving Average Crossover Trend Strategy

Cryptocurrency
Created: 2023-11-22 17:29:04
Last modified: 3 years ago
1
Follow
1778
Followers

img

Overview

The Dual Moving Average Crossover Trend Strategy is a trend following strategy that generates buy and sell signals when fast and slow moving average lines cross. It incorporates multiple indicators like MACD and RSI to determine the trend direction and has strong trend tracking capability.

Strategy Logic

The strategy mainly uses the following indicators for judgment:

  1. Fast and slow moving average lines: golden cross for buy signal, death cross for sell signal.

  2. MACD: MACD line above Signal line and rising MACD lowest for bullish signal.

  3. RSI: RSI above 50 for bullish, below 50 for bearish.

  4. Awesome Oscillator (AO): AO crossing above 0 line for buy, crossing below for sell.

  5. Three daily moving averages: shorter period daily MA crossing above longer period daily MA as buy signal.

The strategy combines multiple timeframes and indicators to generate buy and sell logic. It produces buy orders when multiple indicators show bullish signals at the same time, and sell orders when bearish signals emerge, to track the trend.

Advantage Analysis

The strategy has the following advantages:

  1. Multi-indicator combo reduces false signals and improves accuracy.

  2. Incorporating multiple timeframes identifies larger trend direction.

  3. Parameter tuning provides good profitability.

  4. Adopts moving stop loss to control risk and limit losses.

  5. Automated trend tracking without manual intervention, reducing costs.

Risk Analysis

It also has some risks:

  1. More whipsaws may happen in range-bound markets. Optimize parameters to reduce invalid signals.

  2. Black swan events could cause sharp drawdown. Set up moving stop loss to limit losses.

  3. Complex buy/sell logic relies on large historical data to find optimal parameters.

  4. Inappropriate stop loss setting leads to premature exit. Repeatedly backtest to find best parameters.

Optimization Directions

The strategy can be improved from the following aspects:

  1. Test more indicator combinations for more steady and accurate signals, like volatility index, OBV etc.

  2. Optimize indicator parameters with machine learning and genetic algorithms to reduce overtrading.

  3. Introduce model ensemble techniques to integrate signals from multiple independent strategy models, improving robustness.

  4. Enter trade on higher timeframe, exit on lower timeframe. Reduces holding drawdown risk.

  5. Build quantitative risk control module with strict limits on per trade stop loss percentage, max drawdown etc.

Summary

The Dual Moving Average Crossover Trend strategy uses fast and slow MA crosses as trading signals, together with MACD, RSI to judge trend direction for automated trend tracking. Significant optimization space exists by incorporating more indicators, parameters tuning, model ensembles etc for better strategy efficacy.

Source
Pine
/*backtest
start: 2023-10-22 00:00:00
end: 2023-11-21 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=5
strategy('SteffVans', shorttitle='SteffVans strategy', overlay=true, process_orders_on_close = true)

// Input settings
Strategy parameters
Strategy parameters
macd_fast_length
macd_slow_length
macd_signal_length
rsiLengthInput
len1
len2
len3
src
RSI Settings
Source
MA Settings
MA Type
MA Length
BB StdDev
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)