MT4 EA to Stop Opening New Trades (Allow Existing Trades Only)

Specification

🔹 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.


Responded

1
Developer 1
Rating
(240)
Projects
302
28%
Arbitration
32
25% / 63%
Overdue
9
3%
Loaded
2
Developer 2
Rating
(102)
Projects
158
21%
Arbitration
23
9% / 78%
Overdue
16
10%
Loaded
3
Developer 3
Rating
(12)
Projects
18
39%
Arbitration
1
0% / 100%
Overdue
1
6%
Working
4
Developer 4
Rating
(8)
Projects
8
0%
Arbitration
0
Overdue
0
Free
5
Developer 5
Rating
(17)
Projects
21
10%
Arbitration
5
40% / 40%
Overdue
1
5%
Loaded
6
Developer 6
Rating
(15)
Projects
34
24%
Arbitration
4
0% / 50%
Overdue
2
6%
Working
7
Developer 7
Rating
(5)
Projects
6
50%
Arbitration
1
100% / 0%
Overdue
1
17%
Working
Published: 6 codes
8
Developer 8
Rating
(24)
Projects
25
68%
Arbitration
0
Overdue
1
4%
Working
Published: 3 codes
9
Developer 9
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
10
Developer 10
Rating
(3)
Projects
1
100%
Arbitration
3
0% / 100%
Overdue
0
Free
11
Developer 11
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
12
Developer 12
Rating
(15)
Projects
18
6%
Arbitration
8
38% / 38%
Overdue
2
11%
Working
13
Developer 13
Rating
(625)
Projects
843
48%
Arbitration
27
37% / 15%
Overdue
63
7%
Working
14
Developer 14
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
15
Developer 15
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
16
Developer 16
Rating
(2)
Projects
3
0%
Arbitration
1
0% / 100%
Overdue
0
Free
17
Developer 17
Rating
(305)
Projects
548
35%
Arbitration
79
32% / 42%
Overdue
197
36%
Loaded
Similar orders
I am looking for an experienced MQL5 developer to convert a complex TradingView Pine Script (will provide the script from tradingview) into a fully automated MT5 Expert Advisor -bot. The TradingView script includes: Market Structure (BOS, CHoCH, Swing BOS) Strong / Weak High & Low Equilibrium (Premium / Discount zones) Volumetric Order Blocks Fair Value Gaps (FVG / VI / OG) Accumulation & Distribution zones Equal
// Add this to your EA after ExportState() function void SendToBase44(const string state, const string dir, double entry, double sl, double tp) { string url = " https://preview-sandbox--ee0a32a725b788974de435e8cef40b7a.base44.app/api/functions/receiveEAState "; string headers = "Content-Type: application/json\r\n"; string json = "{" "\"symbol\":\""+_Symbol+"\","
1.Sinyal Perdagangan : Sinyal beli: garis MACD utama memotong garis sinyal ke atas (macd_current>signal_current && macd_previous<signal_previous). Sinyal jual: garis MACD utama memotong garis sinyal ke bawah (macd_current<signal_current && macd_previous>signal_previous). Gambar di bawah menunjukkan kasus beli dan jual. 2. Posisi ditutup pada sinyal yang berlawanan: Posisi beli ditutup pada sinyal jual, dan posisi
Olá, preciso de um programador para montar um indicador com base na sobrevenda do estocastico, volume macd, para uma estrategia de reversão e falso rompimento com regioes de OB validos minimas e maximas de H1, H4, D1 e canais para confluencias, quero que seja didatico visualmente e com cores, sons de alertas e algum sinal de call ou put como setas indicando reversões e falsos rompimentos e continuidade
Subject: Experienced MQL5 Developer | High-Quality Execution & Error Handling "Hello, I am interested in developing your trading system. I specialize in building robust MQL5 Expert Advisors that are not only logically sound but also technically optimized for the MT5 platform. Why work with me? Error-Free Execution: I have deep experience in handling common MT5 execution errors such as Invalid Volume, Not Enough
Hi, I have a specific set of rules and a strategy to execute a trade. I'm looking for a developer to assist me in developing an MQL5 EA based on my strategies

Project information

Budget
30+ USD

Customer

Placed orders1
Arbitrage count0