Type/to search

Multi Timeframe Moving Average Crossover Strategy

Cryptocurrency
Created: 2024-02-19 15:41:29
Last modified: 2 years ago
1
Follow
1781
Followers

img

Overview

The Multi Timeframe Moving Average Crossover Strategy is an algorithmic trading strategy that utilizes moving average crossover signals between different timeframe periods to determine the trend direction. This strategy combines trend, momentum and volatility indicators to generate more reliable trading signals.

Strategy Logic

This strategy calculates the CCI indicator over different periods to determine the market trend direction, combined with MACD signals to locate golden crosses and death crosses, and finally uses the ATR indicator to set stop loss/take profit levels, in order to buy low and sell high.

Specifically, it first computes the 20-period CCI to judge bullish or bearish trends. Then it checks if MACD lines are crossing to identify trading signals. Next, ATR is used to generate trailing stops for locking in profits. Finally, all signals are consolidated to generate the entry and exit signals.

Advantages

  1. Multiple indicators combo improves signal accuracy

    The combination of CCI, MACD and ATR enhances the reliability of trading signals by collectively judging trend, momentum and volatility.

  2. Multi-timeframe analysis captures market rhythm

    Longer period CCI grasps overall trend, while higher frequency MACD locates local turning points, allowing the strategy to capitalize on big market swings.

  3. ATR trailing stop controls risk effectively

    The stop loss based on ATR can adapt to market volatility, while its trailing feature further locks in profits as the market moves favorably.

Risks

  1. Limited optimization space

    Most parameters have narrow fine-tuning space, reaching a performance bottleneck easily.

  2. Increased computing load

    Multiple indicators running together can increase the computing load, causing lags in high frequency trading.

  3. Frequent signals, limited risk control

    Signals can be frequent, while the risk control relies mainly on ATR trailing stop, which has limitations against extreme moves.

Enhancements

  1. Apply machine learning for more efficient parameter tuning

    Bayesian optimization, genetic algorithms etc can enable more intelligent and efficient parameter tuning.

  2. Add functional indicators to improve adaptability

    Incorporating other indicators like volatility, volume, sentiment can make the strategy more robust and flexible.

  3. Strengthen risk management for better stability

    More scientific stop loss rules can be designed, and further modules like position sizing can help safeguard against extreme events.

Conclusion

The Multi Timeframe Moving Average Crossover Strategy utilizes the powers of CCI, MACD and ATR to achieve reliable trend capturing and efficient risk control. It accounts for trend, momentum and volatility to generate accurate signals, grasp market rhythms and manage risk. Although some aspects like parameter tuning, computing load and risk control can be improved further, it is a solid algorithmic trading system nonetheless. With some enhancements using machine learning, more indicators and better risk management, its performance can reach new levels.

Source
Pine
/*backtest
start: 2024-01-01 00:00:00
end: 2024-01-31 23:59:59
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=5
strategy('smplondonclinic Strategy', shorttitle='SMPLC Strategy', overlay=true, pyramiding = 0, process_orders_on_close = true, default_qty_type = strategy.percent_of_equity, default_qty_value = 100)

direction   = input.string(title='Entry Direction', defval='Long', options=['Long', 'Short', 'Both'],group = "Strategy Entry Direction")
Strategy parameters
Strategy parameters
Strategy Entry Direction
Entry Direction
Strategy TP & SL
Take Profit (%)
Stop Loss (%)
TREND MAGIC
CCI period
ATR Multiplier
ATR Period
MACD
Indicator TimeFrame (Optional)
Fast Length
Slow Length
Source
Signal Smoothing
Oscillator MA Type
Signal Line MA Type
UT BOT
Show UT Bot Labels
Key Vaule. 'This changes the sensitivity'
ATR Period
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)