거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Twitter에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
Experts

Popular MACD Strategy from Viral YouTube Video (3.5M+ Views) - MetaTrader 5용 expert

조회수:
2357
평가:
(3)
게시됨:
업데이트됨:
\MQL5\Indicators\ \MQL5\Include\
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동


This Expert Advisor is based on a MACD crossover strategy with trend filtering and support/resistance confirmation. The logic is built according to the most common interpretation of such strategies, using standard indicators. The code is full of comments explaining every line of code step by step.

The Strategy Components are simple:

  • MACD Crossovers: Standard MACD settings (Fast: 12, Slow: 26, Signal: 9) are used to detect momentum shifts:

  • Trend Filter:  A 200-period moving average filters trades: Only buys are allowed above the MA, and sells if the price is below the MA

  • Support/Resistance Condition: Trades are only allowed if price has recently touched a key support or resistance level. These levels are detected using a custom SupportResistance indicator (included as external dependency), based on the relative highs/lows of the last 10 and 20 candles.
  • Signal Validity Window: To avoid missing setups due to timing mismatch, the EA uses a configurable time window to "remember" support/resistance and MACD signals ( SignalValidity parameter).

  • Risk Management: Stop loss is placed a fixed number of points (specified by the user) from the 200 MA.  and the Take profit is automatically calculated as 1.5× the stop loss distance


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


Backtest results on GBPJPY for the last 2 years


Visualization of the strategy


Input parameters



ServerTime ServerTime

A lightweight, customizable tool that displays server time on your chart for precise trading decisions.

Seven strategies in One expert Seven strategies in One expert

Name of expert is 'MultiStrategyEA'

BBMA ZoneZeroLoss (ZZL) Grandma Ally BBMA ZoneZeroLoss (ZZL) Grandma Ally

BBMA ZoneZeroLoss Histogram shows trading zones e.g. for "Reentry" setup for risk minimisation

Bull Bear Volume Bull Bear Volume

An indicator that provides a clear visualization of volume pressure on each side of the market