Spezifikation
🔹 Project Description
I need a very simple MT4 (MQL4) Expert Advisor to be used on a DEMO account.
Main Purpose:
When enabled, the EA must prevent opening any NEW trades, while allowing existing open trades to be managed and closed normally.
Required Behavior:
-
Do NOT close any open trades.
-
Do NOT modify TP or SL.
-
Prevent opening of:
-
New initial trades
-
New trade cycles
-
-
Existing trades must continue until they close naturally by TP/SL.
Important:
-
This EA will work alongside another Grid/Martingale EA.
-
The goal is to stop NEW entries only, not trade management.
-
The EA must NOT cause fast open/close behavior.
Input Parameters:
-
EnableBlock = true / false
-
true → block new trades
-
false → do nothing
-
-
(Optional) Block only initial trades (TradeNumber = 00 or first trade in a cycle)
Notes:
-
The EA runs on a DEMO account.
-
Trades are copied from this account to a funded account using a trade copier.
-
This solution must be safe for prop firm rules.
Goal:
To stop opening new trades before withdrawal while allowing all existing trades to finish naturally, so the funded account reaches zero open trades safely.