Type/to search

Momentum Moving Average Crossover Strategy

Cryptocurrency
Created: 2023-09-21 21:29:22
Last modified: 3 years ago
1
Follow
1781
Followers

Overview

This strategy utilizes the crossover principles between fast and slow moving averages to determine market trend directions and generate buy and sell signals. The strategy is simple and easy to implement, suitable for medium-term trading.

Strategy Logic

The strategy employs two moving averages, one fast line and one slow line. The fast line uses 3-day EMA and the slow line uses 15-day EMA. When the fast line crosses above the slow line from below, it indicates an upward trend and gives a buy signal. On the contrary, when the fast line crosses below the slow line from above, it signals a downward trend and gives a sell signal.

The strategy also sets a faster 3-day EMA as the fast exit line. When price breaks below this fast exit line, it judges the trend has reversed and should exit the existing long position. Likewise, when price breaks back above the exit line, it indicates a renewed uptrend and gives a signal to re-enter long.

The specific operation signals are set as:

  1. Fast line crosses above slow line from below, go long

  2. Fast line crosses below slow line from above, go short

  3. Price breaks below fast exit line, close long position

  4. Price breaks back above fast exit line, re-enter long

Advantages

  • Simple to use, only need to configure two moving average parameters, easy to implement

  • Sufficient backtesting data, uses common indicators to evaluate viability

  • Many configurable parameters for optimization

  • Adopts fast exit line as stop loss to better control risk

  • Clear strategy logic, explicit buy and sell signals

  • Appropriate operation frequency, avoids over-trading

Risks

  • Prone to more false signals when trend is unclear as trend following strategy

  • Moving averages have lagging nature, may miss turn points

  • Fixed parameters cannot adapt to market changes, needs optimization

  • Stop loss may be too soft, unable to stop loss in time

  • Frequent signals may lead to higher trading costs

  • Signals may diverge and needs confirmation with other indicators

Risks can be managed by parameter optimization, adding filters, relaxing stop loss, updating parameters timely etc.

Enhancement

  • Test and optimize parameters to better fit market conditions

  • Introduce more indicators to form a robust system

  • Build adaptive parameter settings based on real-time market

  • Apply machine learning models for smarter optimization

  • Set dynamic or trailing stop loss for better risk control

  • Combine volume indicators to avoid divergence

Conclusion

This is a relatively simple dual moving average crossover strategy. It determines market trend and trading signals based on the interaction between fast and slow moving averages. The strategy is easy to implement and can be adapted via optimization. But it also has some risks. More filters are needed to confirm signals and manage risks. When properly optimized and applied to medium-term trading, it can become a very practical quantitative trading system.

Source
Pine
/*backtest
start: 2023-01-01 00:00:00
end: 2023-02-03 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/
// © ehaarjee, ECHKAY, JackBauer007

//@version=4
Strategy parameters
Strategy parameters
FAST EMA
Source for Fast
SLOW EMA
Source for Slow
FAST EMA Exit
Source for Fast Exit
Source for Short Entry
Source for Long Entry
Source for Short Exit
Source for Long Exit
Exit Tuner to touch slowEMA
Run Strategy
From Month
From Day
From Year
Thru Month
Thru Day
Thru Year
Show Date Range
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)