Modification to EA Stop Trading Function using Global Variable

MQL4 Göstergeler Uzmanlar

İş tamamlandı

Tamamlanma süresi: 3 gün

Şartname

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.


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(19)
Projeler
23
9%
Arabuluculuk
6
33% / 50%
Süresi dolmuş
1
4%
Yüklendi
2
Geliştirici 2
Derecelendirme
(4)
Projeler
4
50%
Arabuluculuk
5
0% / 100%
Süresi dolmuş
0
Serbest
3
Geliştirici 3
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
4
Geliştirici 4
Derecelendirme
(253)
Projeler
316
29%
Arabuluculuk
34
26% / 65%
Süresi dolmuş
10
3%
Serbest
5
Geliştirici 5
Derecelendirme
(2655)
Projeler
3373
68%
Arabuluculuk
77
48% / 14%
Süresi dolmuş
342
10%
Serbest
Yayınlandı: 1 kod
6
Geliştirici 6
Derecelendirme
(11)
Projeler
18
28%
Arabuluculuk
4
50% / 50%
Süresi dolmuş
1
6%
Serbest
7
Geliştirici 7
Derecelendirme
(3)
Projeler
1
0%
Arabuluculuk
5
0% / 100%
Süresi dolmuş
0
Serbest
8
Geliştirici 8
Derecelendirme
(45)
Projeler
91
13%
Arabuluculuk
34
26% / 59%
Süresi dolmuş
37
41%
Serbest
9
Geliştirici 9
Derecelendirme
(14)
Projeler
15
40%
Arabuluculuk
2
50% / 50%
Süresi dolmuş
1
7%
Serbest
10
Geliştirici 10
Derecelendirme
(296)
Projeler
475
40%
Arabuluculuk
105
40% / 24%
Süresi dolmuş
80
17%
Meşgul
Yayınlandı: 2 kod
11
Geliştirici 11
Derecelendirme
(74)
Projeler
84
64%
Arabuluculuk
5
100% / 0%
Süresi dolmuş
9
11%
Serbest
12
Geliştirici 12
Derecelendirme
(452)
Projeler
565
26%
Arabuluculuk
24
42% / 38%
Süresi dolmuş
85
15%
Çalışıyor
Yayınlandı: 6 kod
13
Geliştirici 13
Derecelendirme
(190)
Projeler
233
56%
Arabuluculuk
13
15% / 54%
Süresi dolmuş
43
18%
Serbest
14
Geliştirici 14
Derecelendirme
(34)
Projeler
35
60%
Arabuluculuk
1
100% / 0%
Süresi dolmuş
1
3%
Çalışıyor
Yayınlandı: 5 kod
15
Geliştirici 15
Derecelendirme
(14)
Projeler
17
18%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
3
18%
Serbest
16
Geliştirici 16
Derecelendirme
(271)
Projeler
553
50%
Arabuluculuk
57
40% / 37%
Süresi dolmuş
227
41%
Çalışıyor
17
Geliştirici 17
Derecelendirme
(45)
Projeler
46
24%
Arabuluculuk
34
9% / 85%
Süresi dolmuş
10
22%
Serbest
18
Geliştirici 18
Derecelendirme
(18)
Projeler
24
38%
Arabuluculuk
6
33% / 50%
Süresi dolmuş
0
Serbest
19
Geliştirici 19
Derecelendirme
(171)
Projeler
195
42%
Arabuluculuk
13
8% / 54%
Süresi dolmuş
9
5%
Serbest
Yayınlandı: 3 kod
Benzer siparişler
I trade ES futures on the Ninja trader platform. I recently came across an indicator and wanted to check with you if you can build a similar indicator that works on Orenko or Ninja renko charts, and also combines support and resistance untouched. Below is the indicator, which will tell you market chop and to avoid. I want to include a support and resistance bar on the chart when there is no chop please let me know
Project Description: I have a fully working Pine Script for TradingView called MFHA 3-Step Market Structure Strategy V2 . I need it converted into MT5 , with the logic kept as close to the Pine version as possible. What I need: MT5 Indicator Exact oscillator logic Multi-timeframe logic using 4H, 15M, and 1M EMA filter MTF EMA dashboard RSI display Buy and sell visual signals Background state/flash behavior where
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

Proje bilgisi

Bütçe
40 - 50 USD