RobotFX curates the best open-source MetaTrader code to inspire your trading automation.

Real-Time News Avoidance: The integrated news filter significantly reduces the "Holiday Gap" and "Slippage" risks common in automated systems.
Live Parameter Adjustment: You can change the Lot Multiplier or Grid Distance directly on the chart while trades are active—a feature rarely seen in standard MQL5 EAs.
Safe Recovery: While it uses a grid-style approach, it is highly filtered. It only adds to a position if Price Action (Fibonacci/SR) confirms the move, rather than adding blindly every few pips.
Trade the powerful Traders Dynamic Index strategy automatically with this dedicated TDI Expert Advisor. More details.
Input Parameter Guide
| Parameter | Function |
| MaxAccountExposure | The maximum % of your account allowed to be at risk simultaneously. |
| CloseLosesAtPercent | Emergency equity protection; closes everything if drawdown hits this %. |
| InitialLotSize | The starting lot for the first trade in a sequence. |
| LotMultiplier | The factor by which the next grid order increases (e.g., 1.1). |
| EnableNewsFilter | Set to true to avoid trading during high-impact volatility. |
| UseFibonacciGrid | Enables/Disables the grid system based on retracement levels. |
| TrendTimeframe | The timeframe used to determine the overall market bias. |
Thanks for reading. Discover premium MetaTrader solutions at RobotFX.
71645