System Trading 게시글

Master the Viral MACD Strategy: Automate Your Trading with This Expert Advisor

첨부파일
62000.zip (5.33 KB, 다운로드 0회)

Ever wondered how to level up your trading game? Well, you're in luck! Today, we're diving into a popular MACD strategy that's taken the trading world by storm, racking up over 3.5 million views. This strategy has been recreated and automated into an Expert Advisor (EA) for MetaTrader 4, making it easier than ever to test its effectiveness in real market conditions.

Main Features

  • The foundation of this strategy relies on the classic MACD crossover. Here’s the breakdown:

    • Buy Signal: When the main MACD line crosses above the signal line below zero.
    • Sell Signal: When the main MACD line crosses below the signal line above zero.

    Parameters include:

    • Fast EMA: 12
    • Slow EMA: 26
    • Signal Line: (as per MACD standard)
  • To filter trends, we implement a 200-period moving average (MA). If the price is above this MA, we only look for buy opportunities. Conversely, if the price is below, we focus on sell signals.

  • This strategy also integrates price action principles. For a buy trade, the price needs to touch a support level, while for a sell trade, it must move above a resistance level. This is facilitated using a custom Box.mq4 indicator, which shows these critical levels. Keep in mind that support and resistance are somewhat subjective!

  • When it comes to risk management, here's the plan: Place the Stop Loss (SL) above the MA for sell trades and below the MA for buy trades. The SL distance is determined by an input parameter called SLPointDistanceFromMA. As for Take Profit, it’s set to 1.5 times the SL distance.

It’s important to note that the MACD and support/resistance signals don’t have to trigger simultaneously. The SignalValidity input dictates how many candles these signals remain valid after they appear.

Input Parameters

Parameter Description
SignalValidity (int) Number of candles a signal remains valid after appearing (default: 7)
Lotsize (double) Trade volume for each order
SLPointDistanceFromMA (int) Distance (in points) between the MA and the stop loss level

The backtest results on EURUSD for the last year

Input parameters of the EA

A visualization of the strategy

연관 포스트

댓글 (0)