Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Popular MACD Strategy from Viral YouTube Video (Over 3.5 Million Views) - MetaTrader 5 Expert

author EAcpu | 7 reads | 0 comments |

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

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

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

This EA is based on the MACD crossover strategy and features trend filtering and support/resistance confirmation. The logic is built based on the most common interpretations of this type of strategy and using standard indicators. The code is filled with comments explaining each line of code step by step.

The strategy components are simple:

MACD Crossover: Standard MACD settings (Fast: 12, Slow: 26, Signal: 9) are used to detect momentum changes :

Trend Filter: 200 Period Moving Average Filters Trades: Only allows buying above the MA and selling if the price is below the MA

Signal Validity Window: To avoid losing setups due to timing mismatches, the EA uses a configurable time window to "remember" support/resistance and MACD signals (SignalValidity parameter).

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

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

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

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


Attachment download

📎 tradinglab_best_macd_strategy.mq5 (10.03 KB)

📎 supportresistance.mq5 (5.38 KB)

📎 expertfunctions.mqh (8.13 KB)

Source: MQL5 #61998

Verification code Refresh