Script for close order automatically

MQL5 스크립트 C++

작업 종료됨

실행 시간 2 일

명시

I trade multiple pairs with a automated signal provided from another platform.


Existing method: when mt4/mt5 receives the buy or sell signal it will execute the order automatically. But it doesn't close the previously running position in the same pair.


Requirement:

Script should work @ each order is executed(buy/sell).

Only one trade will be there per symbol at any point of time. if mt4/mt5 receives a signal it will execute the orders. Now script will check for more than one order in any symbol. If there is more than one order in a symbol the script should close the older order.

For example: if mt4/mt5 receives a sell signal it will be executed automatically. now the script should check for the more than one order condition in that symbol if there is more than one trade (Sell executed now and a buy is running already and its a older order) the script should close older orders and the latest should be active and running.


NOTE: need this script in both mt4 and mt5

응답함

1
개발자 1
등급
(192)
프로젝트
232
30%
중재
1
100% / 0%
기한 초과
9
4%
무료
게재됨: 2 코드
2
개발자 2
등급
(12)
프로젝트
12
25%
중재
0
기한 초과
1
8%
무료
3
개발자 3
등급
(20)
프로젝트
29
55%
중재
0
기한 초과
0
무료
4
개발자 4
등급
(430)
프로젝트
606
55%
중재
48
23% / 56%
기한 초과
176
29%
무료
5
개발자 5
등급
(349)
프로젝트
463
51%
중재
41
24% / 49%
기한 초과
149
32%
무료
6
개발자 6
등급
(19)
프로젝트
27
19%
중재
6
33% / 33%
기한 초과
2
7%
무료
7
개발자 7
등급
(34)
프로젝트
51
43%
중재
5
40% / 20%
기한 초과
14
27%
무료
게재됨: 2 코드
8
개발자 8
등급
(65)
프로젝트
71
30%
중재
8
0% / 88%
기한 초과
5
7%
무료
9
개발자 9
등급
(7)
프로젝트
10
60%
중재
4
0% / 75%
기한 초과
3
30%
무료
게재됨: 75 기고글, 5 코드
10
개발자 10
등급
(12)
프로젝트
13
23%
중재
7
0% / 71%
기한 초과
3
23%
작업중
11
개발자 11
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
12
개발자 12
등급
(45)
프로젝트
91
13%
중재
34
26% / 59%
기한 초과
37
41%
무료
13
개발자 13
등급
(49)
프로젝트
134
27%
중재
62
13% / 53%
기한 초과
58
43%
무료
게재됨: 324 기고글, 1 코드
14
개발자 14
등급
(54)
프로젝트
65
52%
중재
5
40% / 60%
기한 초과
22
34%
작업중
15
개발자 15
등급
(64)
프로젝트
144
46%
중재
20
40% / 20%
기한 초과
32
22%
무료
비슷한 주문
PLATFORM: MetaTrader 5 (MQL5) ASSET: XAUUSD (Gold) ACCOUNT TYPE: Live Raw Spread Account (Floating Spread + Commission) 500x leverage The broker commission is exactly 3 usd per standart lot per side6.00 round turn). The EA's internal trade tracking, net profit/loss metrics, and trailing drawdown calculations must completely factor in these commission charges alongside the raw asset spread. I need a clean, optimized
I am in need of creating a new like crypto coin, I need experts to evaluate my idea,---- --------------- ------------ - -------------------------------------- ----------------------- ------------- ---------------------------------- ----------------------------------------------------------------------- ------------------------------------------------------------------------
Siraj Durrani 30 - 50 USD
Title: Need MT4 Expert Advisor for XAUUSD (SMC/ICT Strategy) Requirements: I need a professional MT4 Expert Advisor (EA) for XAUUSD based on Smart Money Concepts (SMC) / ICT strategy. Features: - Platform: MetaTrader 4 (MT4) - Symbol: XAUUSD - Automatic Buy and Sell trades. - Detect market trend automatically. - Use Break of Structure (BOS) and Change of Character (CHoCH) for trend confirmation. - Enter trades only
Xauusd to gold 35+ USD
The EA must be fully automated , backtest-friendly , prop-firm-safe , and built with a clean modular architecture . Core Strategy Requirements 1. Higher Timeframe Bias Use D1 and H4 . Use 200 EMA as trend filter: If price is above 200 EMA on both D1 and H4 -> allow BUY only If price is below 200 EMA on both D1 and H4 -> allow SELL only If D1 and H4 are not aligned -> no trade 2. Market Structure Module Detect and
Pine Script Integration Request (Experienced Coders Only) I am looking for a highly experienced Pine Script developer to integrate a Demand & Supply Zone module into my existing indicator. Requirements Keep my current indicator (Rudy) exactly as it is. Do NOT modify, remove, or alter any existing logic, calculations, signals, alerts, or visual elements. Add only the Demand & Supply Zone boxes from a second Pine
🔍 Strategy Logic 📌 Indicators Used 21 EMA RSI (Upper Level: 61, Lower Level: 39 – Customizable) 📈 Buy Side Setup (Long Entry) Step 1 – Trend Confirmation A Green candle must close above 21 EMA. Step 2 – Pattern Formation After the green candle, observe next 4 candles. At least one Red candle must form (opposite candle). That Red candle must also close above EMA. Step 3 – Key Level Marking Mark the High of the Red
Title Professional AI Automation Trading Bot for Forex & Crypto Solution Language Python (preferred) or MQL5 depending on integration requirements. Categories Expert Advisor (EA) for MetaTrader 5 Automated trading strategies AI/ML-based signal generation Risk management automation Required Skills Strong knowledge of MQL5/Python Experience with MetaTrader API integration Machine learning model deployment
I need an Ai trading bot for Binance and BTC on MT5 that also uses order flow data. It should also make use of TSI- Temporal indicator sampling and also it should make use of fundamental analysis in the process of signal generation
Title: MT5 Forex Trading Robot Development I need a MetaTrader 5 (MT5) Expert Advisor (EA) for automated Forex trading. Requirements: 1. The robot must be fully automated and capable of opening and closing trades without manual intervention. 2. Compatible with MetaTrader 5 (MT5). 3. Adjustable lot size, Stop Loss, and Take Profit settings. 4. Built-in risk management based on account balance. 5. Ability to trade

프로젝트 정보

예산
30 - 40 USD