Principal Options
Multi-symbol
The EA can commerce EURUSD, GBPUSD, and USDJPY concurrently (configurable). Every image has a distinctive Magic Quantity and particular Cease Loss / Trailing Cease settings.
Indicators Used
RSI – Relative Energy Index
⚠️ These thresholds decide precisely when the EA validates an entry situation. Altering these values straight impacts the quantity and timing of trades.
EMA and MACD
-
Quick EMA / Gradual EMA: detect the general pattern. Positions are solely taken if the pattern is confirmed (e.g., Quick EMA > Gradual EMA for BUY).
-
MACD: acts as a filter to keep away from false indicators.
Look forward to New Candle
-
WaitForNewBar:
-
true : commerce solely on the shut of a candle.
-
false : commerce on each tick, extra reactive however extra delicate to market noise.
-
⚠️ This parameter basically modifications the EA’s habits.
Buying and selling Hours
-
EnableTradingHours, TradingStartHour, TradingEndHour: outline the hours when the EA is allowed to open positions.
-
SkipLiquidMondayFriday: avoids opening trades throughout excessive volatility or low liquidity durations (Monday morning, Friday afternoon).
⚠️ Essential to restrict threat throughout excessive market actions.
Utilizing % of Capital for Lot Measurement
-
UsePercentOfCapital: opens positions proportional to the out there capital.
-
% of capital: proportion of capital to threat per commerce.
-
Account leverage: enter the proper account leverage for correct lot calculation.
⚠️ Lot dimension will likely be robotically calculated in line with these parameters.
Notice: on this code, the lot dimension is pressured to 0.2, however this calculation is beneficial when you modify the code to allow % of capital.
Cease Loss and Trailing
-
SL configurable per image.
-
Trailing Begin / Step: outline when the SL begins following the market and by what number of steps it strikes.
-
Breakeven: can safe the place as soon as a minimal revenue is reached.
Threat Administration
-
Limits the variety of positions per image in line with RiskLevel (Low / Medium / Excessive).
-
Routinely checks out there margin earlier than opening a commerce.
-
Respects dealer quantity limits.
For any questions or help, you’ll be able to contact the writer on MQL5.