Welcome to the world of trading! Today, I want to introduce you to a fantastic tool: the classic MACD Sample Expert Advisor (EA). This isn’t just any EA; it’s got a little twist that allows you to use it either as a hedging grid EA or a single trade EA.
Before you dive in, here are a few tips to keep in mind:
- Test it out on a demo account first. It’s always wise to get a feel for how it performs without risking real money.
- This EA trades based solely on the price of the open candle! So, keep that in mind while setting your strategies.
- If you prefer not to increase your lot size when facing losses, set: IncreaseFactor=0.
Key Inputs for Your Trading Strategy
Let’s take a look at some essential inputs you can adjust for optimal performance:
- Use_TP_In_Money: Use Take Profit in Money (values: true/false).
- TP_In_Money: Take Profit in Money (values: 10-100).
- Use_TP_In_percent: Use Take Profit in Percent (values: true/false).
- TP_In_Percent: Take Profit in Percent (values: 10-100).
- Enable_Trailing: Enable Trailing with money (values: true/false).
- Take Profit In Money: (values: 25-200).
- Stop Loss In Money: (values: 1-20).
- Exit: Close trades if the trend is against you (values: true/false).
- Lots: Lot size (values: 0.01-1).
- MACDOpenLevel: (values: 1-5).
- MACDCloseLevel: (values: 1-5).
- Stop_Loss: (values: 30-500).
- MagicNumber: (values: 1-100000).
Control Your Drawdown
Managing risk is crucial in trading. Here are some settings to help you control drawdown:
- UseEquityStop: (values: true/false).
- TotalEquityRisk: (values: 0.01-20).
- Max_Trades: (values: 1-12).
Optimize for Success
Remember, it's essential to optimize this EA every few months. Use the same inputs from above to ensure consistency.
Lastly, if you're looking to backtest, check out this helpful guide: How to Backtest Your EA.

So whether you choose to use the MACD Sample as a hedging grid EA or as a single trade EA, it's a versatile tool that can enhance your trading experience. Happy trading!
Related Posts
- Harnessing MQL5 Wizard for Trading Signals: 3 Black Crows & 3 White Soldiers with MFI
- Mastering Trading Signals with MQL5 Wizard: Bullish and Bearish Engulfing Strategies
- Creating a Stochastic-Based EA for Hammer and Hanging Man Patterns in MetaTrader 5
- Creating an Expert Advisor for Dark Cloud Cover and Piercing Line Patterns with CCI Confirmation
- Mastering the Moving Average EA for MetaTrader 5: A Trader's Guide