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, 5 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ı: 301 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
20
40% / 15%
Süresi dolmuş
32
22%
Çalışıyor
Benzer siparişler
Hi, I am looking for an Quant/MQL5 developer to build a pure mathematical, Delta-Neutral Statistical Arbitrage (spot vs future ) Expert Advisor. ​ No retail indicator logic (No RSI, MACD, etc.). This is a high-speed, spread-based execution model trading the pricing inefficiency between two correlated assets (e.g., Gold Spot XAUUSD vs Gold Futures). ​ Core Requirements at a Glance: ​Real-time Spread & Z-Score
Looking for a Proven Non-Repainting Gold Indicator (XAUUSD) – High Accuracy & Ready-Made Solutions Only 📌 Project Description: I am looking for a high-quality, non-repainting indicator specifically for XAUUSD (Gold) that is already developed and tested. ⚠️ Important: I am NOT looking for a new indicator to be built from scratch. I want an existing, proven system that you have already created and are confident in. 🎯
Alphapipfx 30+ USD
Sniper Strategy EA -Presicion Forex Trading Bot for MT4 and MT5 Sniper Strategy EA is a fully automated Expert Advisor that executes high-probability forex trades using EMA 50/200 trend detection, RSI 14 momentum filtering, and automatic Support and Resistance zone identification. This bot does not chase price — it waits for price to come to key levels and confirms with multiple indicators before entering, just like
I am looking for an experienced MQL5 developer to improve an existing forex EA, not build a completely new robot from zero. Important note: I use GPT to help me write because my English is limited. The wording may be assisted by GPT, but the trading issues, testing observations, and improvement goals are real from my side. I need a developer who is patient, understands strategy logic well, and can explain the
Fair Value Gap Expert , Optimize the core logic for live chart . [Filters are working] Lets ace the trailing stop . Change points to pip . Project will start from next week
Double ma 30+ USD
Create an EA on moving averages. The EA will open a trade when the price is above the averages. It will open another when it is below the averages. Ability to work on any timeframe. Ability to use a news filter and a martingale...or to work on a grid
Project Description I am looking for a highly experienced MQL5 developer to build a professional-grade Expert Advisor for MetaTrader 5, focused on XAUUSD (Gold). This project is not a simple EA, but the foundation of a scalable multi-strategy trading system, designed for long-term development and future upgrades. Core Concept The EA must support a maximum of 5 internal strategies, each working independently but
Hi, Before ordering, I want to verify the quality of your ICT/SMC logic. Do you have an existing indicator or strategy (your own work) that I can test on TradingView? If yes, please provide: 1. A demo (invite-only script or video) 2. Proof it is NON-repainting (explained clearly) 3. Live or replay demonstration (not static screenshots) Specifically I want to see: * Clean swing structure (no consecutive highs/lows) *
Project Overview ​I am looking for a high-level Algorithmic Trader / Developer to build a sophisticated, fully automated scalping system for the Nasdaq-100 Future (NQ) . The system must integrate institutional order flow logic with market structure analysis. ​The core logic must be written in Python , acting as a central hub that bridges ATAS (as the primary data source for Order Flow) and MetaTrader 5 (as the
Hi Im working with a Crypto trading company and we want to branch out with our indicator, i'm researching the bot automation and need some hands on board. i i want to hear your opinion about the indicator that i would like you to build. in the PDF i explain the whole indicator and how it need to look like. happy to hear form you

Proje bilgisi

Bütçe
30 - 40 USD