Script for close order automatically

MQL5 Komut dosyaları C++

İş tamamlandı

Tamamlanma süresi: 2 gün

İş Gereklilikleri

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

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(192)
Projeler
232
30%
Arabuluculuk
1
100% / 0%
Süresi dolmuş
9
4%
Serbest
Yayınlandı: 2 kod
2
Geliştirici 2
Derecelendirme
(12)
Projeler
12
25%
Arabuluculuk
0
Süresi dolmuş
1
8%
Serbest
3
Geliştirici 3
Derecelendirme
(20)
Projeler
29
55%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
4
Geliştirici 4
Derecelendirme
(430)
Projeler
606
55%
Arabuluculuk
48
23% / 56%
Süresi dolmuş
176
29%
Serbest
5
Geliştirici 5
Derecelendirme
(349)
Projeler
463
51%
Arabuluculuk
41
24% / 49%
Süresi dolmuş
149
32%
Serbest
6
Geliştirici 6
Derecelendirme
(19)
Projeler
27
19%
Arabuluculuk
6
33% / 33%
Süresi dolmuş
2
7%
Serbest
7
Geliştirici 7
Derecelendirme
(34)
Projeler
51
43%
Arabuluculuk
5
40% / 20%
Süresi dolmuş
14
27%
Serbest
Yayınlandı: 2 kod
8
Geliştirici 8
Derecelendirme
(65)
Projeler
71
30%
Arabuluculuk
8
0% / 88%
Süresi dolmuş
5
7%
Serbest
9
Geliştirici 9
Derecelendirme
(7)
Projeler
10
60%
Arabuluculuk
4
0% / 75%
Süresi dolmuş
3
30%
Serbest
Yayınlandı: 74 makale, 6 kod
10
Geliştirici 10
Derecelendirme
(12)
Projeler
13
23%
Arabuluculuk
7
0% / 71%
Süresi dolmuş
3
23%
Çalışıyor
11
Geliştirici 11
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
12
Geliştirici 12
Derecelendirme
(45)
Projeler
91
13%
Arabuluculuk
34
26% / 59%
Süresi dolmuş
37
41%
Serbest
13
Geliştirici 13
Derecelendirme
(49)
Projeler
134
27%
Arabuluculuk
62
13% / 53%
Süresi dolmuş
58
43%
Serbest
Yayınlandı: 284 makale, 1 kod
14
Geliştirici 14
Derecelendirme
(54)
Projeler
65
52%
Arabuluculuk
5
40% / 60%
Süresi dolmuş
22
34%
Çalışıyor
15
Geliştirici 15
Derecelendirme
(64)
Projeler
144
46%
Arabuluculuk
19
42% / 16%
Süresi dolmuş
32
22%
Çalışıyor
Benzer siparişler
European Central Bank (ECB) Interest Rate Decision The European Central Bank left interest rates unchanged at its first policy meeting of 2026, in line with expectations. source: https://www.mql5.com/en/economic-calendar/european-union/ecb-interest-rate-decision '407332776' : added order #481999464 sell 0.01 BTCUSDm at market
I am looking for a professional developer to build a custom trading analysis software for me. This tool is NOT an automated trading bot (EA); it is an analysis dashboard to help me identify high-probability setups based on my strategy. Key Requirements: Multi-Timeframe Analysis: The software should scan 4 different timeframes (M15, M30, H1, H4, D1, WK1, MTH1) and alert me when my conditions are met. Indicator
Core Requirements: Two selectable timeframes - dropdown inputs to choose from M1, M5, M15, H1, H4, D1, W1, MN1 Timeframe 1 = Chart's own timeframe (if chart is M5, TF1 should be M5) Timeframe 2 = Higher timeframe for confluence All Ichimoku components displayed for both timeframes: Tenkan-sen Kijun-sen Senkou Span A Senkou Span B Chikou Span Cloud (bullish and bearish) Technical Settings: All buffers accessible for
Hello everyone, I am looking for a highly experienced MQL5 developer to build a fully automated Expert Advisor (EA) based strictly on Smart Money Concepts (SMC) 🔍 Core Strategy Requirements (SMC Only) The EA must be based on Advanced Smart Money Concepts , including: ✅ Market Structure (BOS & CHOCH) ✅ Liquidity concepts (equal highs/lows, stop hunts)✅ Trap Blocks / Fake Order Blocks detection ✅ Valid Order
I need a AI signal generating bot for forex trading that use the latest ai technology to track real time forex market, analyse and give signals. The bot should operate such that when i put it in a chart it will analyse the market, after several minutes it will display whether the trade is buying or selling. It should display the one minute, five minute,15minute, 30 minute, one hour, 4 hours and daily time frame
Hello I want to convert my tradingview indicators into Ninja trader can anyone help me with it it is urgent and I will like to discuss more about it to you if you can help me Kindly do well to bid on it
📌 JOB DESCRIPTION – FULLY AUTOMATED TRADING SYSTEM I am looking for an experienced developer to build a fully automated end-to-end trading system for MetaTrader 5. This is not an indicator-based bot and not a discretionary or black-box AI system. The system must follow a strict, deterministic rule-based trading framework that is already defined. 🎯 PROJECT GOAL Build a system where: A backend continuously evaluates
EA with Zones 30+ USD
Good day! I have an indicator .mq5 this indicator calculates and draw zones on the chart. My request is to add these specific zones drawn and calculated exactly as the indicator in the EA. A replicate behavior of the zones from the indicator to the EA. Thank you
I need a fully automated end-to-end system where a backend continuously runs my deterministic CORE EDGE validator on live market data, generates numeric JSON trade tickets (GO) or alert levels (NO-GO), and automatically pushes those instructions to the MT5 EA for execution. There are no manual signals. ROLE SPLIT (IMPORTANT) Backend (analysis & decision engine): Continuously evaluates live data using my CORE EDGE
Hi, I have a pinescript for an indicator that I want to translate to .mql5 it is Smart Money Concept by luxalgo. Most important are the zones Premium, equilibrium and discount zones

Proje bilgisi

Bütçe
30 - 40 USD