Type/to search

Multi Moving Average Crossover Trading Strategy

Cryptocurrency
Created: 2023-12-06 17:10:00
Last modified: 3 years ago
1
Follow
1779
Followers

img

Strategy Overview

This strategy generates trading signals based on multiple moving average indicators. It monitors short-term, medium-term and long-term moving averages simultaneously, and generates trading signals according to their crossover situations to determine trend direction.

Strategy Name

Multi Moving Average Crossover Strategy

Strategy Logic

This strategy employs 3 moving averages with different periods, including 7-day, 13-day and 21-day lines. The trading logic is based on the following points:

  1. When the short-term 7-day MA crosses over the medium-term 13-day MA upwards, while the long-term 21-day MA is in an upward trend, a long signal is generated.
  2. When the short-term 7-day MA crosses below the medium-term 13-day MA downwards, while the long-term 21-day MA is in a downward trend, a short signal is generated.

By combining moving averages across different timeframes, the strategy can judge market trends more precisely and avoid false trades.

Advantages

  1. Using multiple MA lines can better determine market moves and avoid being misguided by false breakouts or short-term fluctuations in the market.
  2. Signals are only generated when the trend is clear, thus reducing unnecessary trades and lowering transaction costs.
  3. Flexible parameter settings - the periods of the MAs can be adjusted based on personal preference to suit different products and market environments.

Risks

  1. Frequent false signals may occur in a ranging, choppy market.
  2. MAs as trend-following indicators cannot accurately locate turning points.
  3. Delayed signal by MA crossovers may miss part of the profits.
  4. Risks can be reduced by introducing other technical indicators for signal validation and optimizing MA parameters.

Optimization Directions

  1. Consider incorporating volatility indicators to gauge trend strength and avoid trading in choppy markets.
  2. Try applying machine learning models to auto-optimize MA parameters.
  3. Add stop loss strategies to cut losses in time when drawdowns expand.
  4. Use limit orders when MA crossover happens to reduce slippage.

Conclusion

This strategy combines short-term, medium-term and long-term MAs to determine market trend based on their crossover relations, making it a relatively stable and efficient trend-following strategy. Further improvements in indicator parameters, stop loss mechanisms and order placement can help increase win rate and profitability.

Source
Pine
/*backtest
start: 2022-11-29 00:00:00
end: 2023-12-05 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/
// © Crypto-Oli

//@version=4
Strategy parameters
Strategy parameters
From Day
From Month
From Year
To Day
To Month
To Year
Signals from Heikin Ashi Candles
MA Type
src
Short MA Length
Middle MA Length
Long MA Length
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)