EA Configurations guide

4 May 2025, 10:33
Babay Ubaedillah
0
34
EA Deployment and Optimization Guide Deploying the Expert Advisor (EA)

This EA supports all chart symbols and timeframes. Once attached, it adapts to the selected chart automatically. No additional configuration is required at launch.

Detailed explanation is available at: https://www.mql5.com/en/blogs/post/745691


Performance Testing Strategy

Backtesting is most effective using MetaTrader 5 due to advanced features not present in MT4. Key reasons include:

  • MT4 lacks tick-based simulation accuracy.
  • It does not support multi-symbol testing environments.
  • MT5 allows testing using "Every Tick Based on Real Ticks" for realistic data simulation.

Configuring Trade Instruments

To define tradable instruments:

  • Adjust the symbol list within the EA input parameters.
  • No need to enter broker-specific suffixes/prefixes. For instance, enter EURUSD even if your broker uses EURUSD.m .

Running Multiple EAs Simultaneously

Each EA should be assigned a unique Magic Number to prevent conflicts. This allows seamless operation of multiple EAs on a single terminal.


EA Software Updates

Follow the instructions in the link below when an EA update is released:

https://www.mql5.com/en/blogs/post/729017

Joining Official Communication Channels

For Telegram access, contact the EA author via private message on MQL5.

To access the official MQL5 channel, follow this link: https://www.mql5.com/en/channels/016d6cdddfbcdb01


Optimization & Preset Files

The default configuration is suitable for most environments. However, users may:

  • Customize settings via optimization based on broker conditions.
  • Access updated setfiles from our official channels.

Risk Management Recommendations

Maintain risk per trade between 1% and 2%. Higher risk may lead to drawdowns, while lower risk offers better long-term consistency.



EA Configuration Parameters Overview

    Customize General Preferences

    • choose trading symbols
      Select the financial instruments (like XAUUSD, EURUSD) that the EA will trade.

    • specify main magic number
      Assign a unique identifier to the EA’s trades to distinguish them from others.

    • choose order comment
      Add an optional comment to each trade for identification or logging purposes.

    Customize Risk Preferences

    • specify lot calculation method
      Choose how the EA calculates lot size — either fixed or percentage-based.

    • set risk percentage for each trade
      Define how much of the account balance to risk per trade (in percent).

    • define fixed lot size
      Set a specific, unchanging lot size for all trades if not using dynamic calculation.


    Customize Same Order Preferences

    • use only one trade per symbol
      Prevent the EA from opening multiple trades on the same instrument simultaneously.

    • specify min distance between trades (in points)
      Set the minimum spacing (in points) required between trades to avoid clustering.


    Set Recovery Zone Parameters

    • enables strategic loss recovery
      Turn on the recovery feature to help recoup losses using a strategy.

    • utilize reverse recovery strategy
      Use an opposite or inverse method for recovery trades.

    • define strategy start method
      Decide how and when the recovery zone will be triggered or initiated.

    • select how to increase free margin
      Choose a method to manage margin when recovery trades are placed.

    • omit initial recovery symbol
      Skip the original symbol that caused the loss when starting recovery.


    Activate Initial Recovery Phase

    • activate recovery on signal
      Enable starting recovery based on a market signal instead of immediately.

    • specify timeframe for recovery signal detection
      Choose the chart timeframe to analyze for recovery signals (e.g., H8).

    • specify period for recovery signal detection
      Define how many bars/candles to consider for signal analysis.

    • specify RSI low value for recovery signal detection
      Set the lower RSI level to trigger a potential recovery trade.

    • specify RSI high value for recovery signal detection
      Set the upper RSI level as a threshold for signal confirmation.

    • utilize reverse RSI recovery strategy
      Use an inverse logic for the RSI-based recovery decision.


    Resume Ongoing Recovery Process

    • activate recovery continuation on signal
      Allow recovery to keep going if a signal confirms continuation.

    • specify fast ATR period for recovery signal detection
      Use a short-term ATR period for volatility analysis in recovery.

    • specify slow ATR period for recovery signal detection
      Use a longer-term ATR for trend/volatility comparison in signal confirmation.

    • specify sensitivity for recovery signal detection
      Set how sensitive the system should be when detecting valid recovery signals.


    Assess Fixed Points Zone

    • specify zone distance (fixed points)
      Define a fixed point range to consider as the "zone" for placing recovery trades.


    Assess ATR-Based Zone

    • specify ATR timeframe
      Choose the chart timeframe used to calculate ATR (Average True Range).

    • specify ATR period for zone calculation
      Set the number of bars used to calculate the ATR value.

    • specify ATR multiplier for zones
      Multiply the ATR value by this number to size the trading zone.


    Compute TP Considering Direction

    • specify TP pips multiplier for same signal
      Set a take profit distance multiplier when the trade direction matches the signal.

    • specify TP multiplier for opposite signal
      Use a larger or smaller TP when the trade goes against the signal direction.


    Define Profit Calculation for Recovery

    • specify profit type for recovery
      Choose the kind of profit target used during recovery (e.g., fixed amount or percentage).

    • specify total profit USD after recovery
      Set a cash amount goal to be reached before closing recovery trades.

    • specify total profit % of balance after recovery
      Define a percentage of account balance as the profit goal post-recovery.


    Customize Drawdown Closing Preferences

    • specify allowed maximum drawdown to avoid new trades
      Limit how much loss (in percentage) the account can take before trading halts.

    • use close on max drawdown
      Automatically close all trades if the drawdown exceeds the set threshold