Modification to EA Stop Trading Function using Global Variable

MQL4 Indicators Experts

Job finished

Execution time 3 days

Specification

I require help to get my stop trading function to work (EA is setting GV but not reading to stop trading):

This is how it should work, once a trade is open EA should set Global Variable “_stoptrading”

Example GV: "AUDUSD"_stoptrading"magicnumber"


EA reads (bool stoptrading = GlobalVariableGet(symbol + "_stoptrading") and should not open more than the allowed additional trades per symbol “(input int)max_trades_per_symbol” and not more than the total allowed open trades “(input int) max_trades_total” so if either SL or TP hit no trades are open even if buy/sell conditions met until next Day (Open of new D1 Candle).

Work will be done remotely on my PC please dont bid if you cant work this way. Thank you.


Responded

1
Developer 1
Rating
(19)
Projects
23
9%
Arbitration
6
33% / 50%
Overdue
1
4%
Loaded
2
Developer 2
Rating
(4)
Projects
4
50%
Arbitration
5
0% / 100%
Overdue
0
Free
3
Developer 3
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
4
Developer 4
Rating
(253)
Projects
316
29%
Arbitration
34
26% / 65%
Overdue
10
3%
Free
5
Developer 5
Rating
(2655)
Projects
3373
68%
Arbitration
77
48% / 14%
Overdue
342
10%
Free
Published: 1 code
6
Developer 6
Rating
(11)
Projects
18
28%
Arbitration
4
50% / 50%
Overdue
1
6%
Free
7
Developer 7
Rating
(3)
Projects
1
0%
Arbitration
5
0% / 100%
Overdue
0
Free
8
Developer 8
Rating
(45)
Projects
91
13%
Arbitration
34
26% / 59%
Overdue
37
41%
Free
9
Developer 9
Rating
(14)
Projects
15
40%
Arbitration
2
50% / 50%
Overdue
1
7%
Free
10
Developer 10
Rating
(296)
Projects
475
40%
Arbitration
105
40% / 24%
Overdue
80
17%
Busy
Published: 2 codes
11
Developer 11
Rating
(74)
Projects
84
64%
Arbitration
5
100% / 0%
Overdue
9
11%
Free
12
Developer 12
Rating
(452)
Projects
565
26%
Arbitration
24
42% / 38%
Overdue
85
15%
Working
Published: 6 codes
13
Developer 13
Rating
(190)
Projects
233
56%
Arbitration
13
15% / 54%
Overdue
43
18%
Free
14
Developer 14
Rating
(34)
Projects
35
60%
Arbitration
1
100% / 0%
Overdue
1
3%
Working
Published: 5 codes
15
Developer 15
Rating
(14)
Projects
17
18%
Arbitration
2
0% / 100%
Overdue
3
18%
Free
16
Developer 16
Rating
(271)
Projects
553
50%
Arbitration
57
40% / 37%
Overdue
227
41%
Working
17
Developer 17
Rating
(45)
Projects
46
24%
Arbitration
34
9% / 85%
Overdue
10
22%
Free
18
Developer 18
Rating
(18)
Projects
24
38%
Arbitration
6
33% / 50%
Overdue
0
Free
19
Developer 19
Rating
(171)
Projects
195
42%
Arbitration
13
8% / 54%
Overdue
9
5%
Free
Published: 3 codes
Similar orders
I am looking for an experienced MQL5 developer to continue optimization work on an existing Expert Advisor (MQ5 source file available, 2.5MB). Important: This is NOT a project to build a new EA. The task is strictly to refine and improve the current system while keeping the core strategy intact. The EA is already functional and stable. A full code audit and baseline backtesting have already been done, and key
📌 EXPERT ADVISOR (EA) DEVELOPMENT COMPLETE A–Z FINAL REQUIREMENT DOCUMENT (FINAL VERSION) 1. 🔐 SECURITY SYSTEM (MANDATORY) The EA must include strict security checks. If any security condition fails, EA must immediately STOP trading. 1.1 Account Lock #define ALLOWED_ACCOUNT 5047656761 EA must run ONLY on this account number If account does not match: ❌ EA stops trading 🚨 Alert message 📲 Telegram notification to
Hello, and please read everything !!! I am looking for a developer who can recreate a strategy similar to an EA I already have. The EA works well on demo, especially during specific volatility windows (for example DE40 between 09:00 and 10:00 Frankfurt time), but on real accounts it produces constant losses even with IC Markets Raw and VPS close to the broker. 🎯 Objective The goal is to recreate and adapt this
As the title suggests, I need an EA whose algorithm earns commission without incurring excessive losses from the trading volume at the broker....Like Exness/Vantage, or do you have any other ideas
I need for an EA for XAUUSD using a grid + Martingle + hedging strategy developer Main features: • Open Buy & Sell at start (hedging) • Grid system with adjustable step (price-based levels) • Lot multiplier (martingale-style) • Fixed TP per trade + basket TP (close all in profit) • Continuous re-entry after TP • Risk management (max trades, max lot, equity stop) EA should be stable, error-free, and work with
Darwish 50 - 100 USD
I want a bot that runs on any timeframe, but for now, I’ll set it on 1 minute. It should watch for buy and sell signals. Each time it opens a trade, as soon as it makes a small profit like 1, 2, or 3 dollars it closes, then checks for the next signal. If it sees a buy, it buys; if it sees a sell, it sells—just repeating the cycle, over and over, until I stop it
📢 Project Title:MT5 Expert Advisor (EA) – Advanced Renko Strategy (Full Automation) 📄 Project Description:I want to develop a fully automated MT5 Expert Advisor (EA) based on my existing TradingView Renko strategy.I already have a working Pine Script that generates Buy/Sell alerts with ATR and other logic. Now I need the same strategy to be fully converted into MT5 EA with built-in Renko logic (no external
Need trading robot 30 - 100 USD
I need a trading robot specifically for gold (XAUUSD) that follows a high-probability scalping and intraday strategy based on 15-minute candle confirmations. The bot should identify key support and resistance zones, detect breakouts, fake breakouts, and pullbacks before entering trades. It must include entry conditions based on candle patterns such as engulfing and rejection wicks, and optionally fair value gaps
I need a very accurate MT5 boom and crash indicator which shows when to buy and when to sell with no repaint. The indicator should show with an arrow where to buy for boom just before the spike and sell for crash just before the spike
looking for a highly experienced mql5 developer to build a professional trading ea based on multi timeframe top down analysis and market structure concepts the system should combine higher timeframe context with lower timeframe execution and provide both precise logic and clean visual representation on chart ⸻ core requirements • implementation of multi timeframe logic higher timeframe bias combined with lower

Project information

Budget
40 - 50 USD