How to run my EA

How to run my EA

19 July 2025, 07:37
Luaiy Ibra Hakiki Lubis
0
379

Expert Advisor Pro Guide: Lesser-Known Yet Essential Features

If you’ve already run an EA before, this guide will give you deeper insights — beyond just attaching it to a chart. Here’s what most traders miss or don’t fully understand about working with advanced expert advisors,

like this one: https://www.mql5.com/en/blogs/post/751762 

and how to update the EA:https://www.mql5.com/en/blogs/post/729017


Do Timeframes Matter?

Actually, no. The EA doesn't rely on the timeframe of the chart it's attached to. You can place it on M1, M15, H1, or even D1 — internally it calculates what it needs based on its logic. This gives you flexibility to monitor the chart in your preferred style.

Channels:


How Does the EA Decide Lot Size?

There are two main modes:

  1. Fixed Lot: You define the lot manually, and it will be used every time.
  2. Risk-Based: The EA calculates the lot based on how much you're willing to risk if SL is hit.

This is controlled by the "lot calculation method" input. For example, if you're risking 1% and SL is 50 pips, it will auto-calculate the lot size to match your balance exposure.

Trail Like a Pro: ATR vs Fixed Pips

Trailing stop lovers, listen up! This EA gives you two main styles:

  1. Fixed Pip Trailing: Simple and reliable. Starts trailing after X pips in profit.
  2. ATR-Based Trailing: Dynamic. Adjusts the trailing stop distance based on volatility. Perfect for trending markets.

You can select your style, and even fine-tune the trail start , trail distance , step , ATR period , and multiplier .

Can I Run This EA on Multiple Charts at Once?

Yes — as long as you set different magic numbers for each chart. For example, one instance on XAUUSD and another on EURUSD , each with its own magic number. This prevents conflicts and keeps order management clean.

Why MT5 Is a Must for Testing

If you're still using MT4 for backtesting... you're doing it wrong. MT5 allows:

  • Real tick simulation
  • Multi-symbol testing
  • Faster optimization

Use it to test strategies that rely on multiple instruments or accurate volume data.

📂 Input Descriptions

general setup

  • all the symbols to trade — Specifies which symbol the EA trades (e.g., “NZDUSD”).
  • magic number — Assigns a unique identifier to the EA’s trades for tracking and separation from other systems.
  • comment — Adds a custom comment text to each trade for identification and monitoring.

bull & bear power filter

  • bull & bear power filter — Enables the Bull & Bear Power indicator as a condition filter for signals.
  • determine bull power filter period — Sets the period for the Bull Power indicator.
  • determine bear power filter period — Sets the period for the Bear Power indicator.
  • determine bull & bear power timeframe — Chooses the timeframe for both Bull and Bear Power calculations.

prop firm setup

  • prop firm tp and sl randomizer — Slightly randomizes take profit and stop loss distances to comply with prop firm systems.

lot and risk management

  • specify lot calculation method — Defines how lot sizes are calculated (fixed, risk-based, or balance-dependent).
  • risk per each sl hit — Sets the percentage of account balance risked for each stop loss event.
  • fix lot value — Defines a constant lot size for every trade regardless of balance or conditions.

trade direction and drawdown protection

  • determine allowed direction of trades — Selects whether the EA trades buy only, sell only, or both directions.
  • equity drawdown (limit in %) to avoid new trades — Prevents new trades when drawdown exceeds the specified limit.
  • auto close on drawdown — Automatically closes all active trades when the maximum drawdown threshold is reached.

execution safety

  • ratio-based fill quality filter — Restricts execution on poor liquidity by limiting slippage ratio to this threshold.

prop style safety

  • prop firm guard mode (sl mandatory on all) — Forces every order to include a stop loss for prop-firm rule compliance.

profit targeting

  • choose profit type — Defines whether profit targets are based on USD value or percentage of account balance.
  • choose total profit (usd) — Sets the total profit target in dollars before closing all active trades.
  • choose total profit % of balance — Sets the total profit target as a percentage of the current balance.