Script for close order automatically

MQL5 Scripts C++

Job finished

Execution time 2 days

Specification

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

Responded

1
Developer 1
Rating
(192)
Projects
232
30%
Arbitration
1
100% / 0%
Overdue
9
4%
Free
2
Developer 2
Rating
(12)
Projects
12
25%
Arbitration
0
Overdue
1
8%
Free
3
Developer 3
Rating
(20)
Projects
29
55%
Arbitration
0
Overdue
0
Free
4
Developer 4
Rating
(430)
Projects
606
55%
Arbitration
48
23% / 56%
Overdue
178
29%
Free
5
Developer 5
Rating
(349)
Projects
463
51%
Arbitration
41
24% / 49%
Overdue
149
32%
Free
6
Developer 6
Rating
(19)
Projects
27
19%
Arbitration
6
33% / 33%
Overdue
2
7%
Free
7
Developer 7
Rating
(34)
Projects
50
44%
Arbitration
4
25% / 25%
Overdue
14
28%
Free
8
Developer 8
Rating
(65)
Projects
71
30%
Arbitration
8
0% / 88%
Overdue
5
7%
Free
9
Developer 9
Rating
(5)
Projects
7
43%
Arbitration
4
0% / 75%
Overdue
3
43%
Free
10
Developer 10
Rating
(9)
Projects
8
0%
Arbitration
5
0% / 80%
Overdue
1
13%
Working
11
Developer 11
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
12
Developer 12
Rating
(42)
Projects
88
14%
Arbitration
30
30% / 57%
Overdue
36
41%
Working
13
Developer 13
Rating
(49)
Projects
134
27%
Arbitration
62
13% / 53%
Overdue
58
43%
Free
14
Developer 14
Rating
(54)
Projects
65
52%
Arbitration
5
40% / 60%
Overdue
22
34%
Working
15
Developer 15
Rating
(62)
Projects
140
46%
Arbitration
19
42% / 16%
Overdue
32
23%
Free
Similar orders
hello here am looking for someone that can assist me in removing validation form my demo file and if anyone is interested dm the for more details i will be waiting to get any reply by some on that can assist me with this
Trading robots are programs, which operate according to underlying algorithms. An algorithm is a set of actions that need to be performed in response to certain events. For example, the most common task in algo trading is the identification of the "New bar" event. When the event occurs, the robot checks the emergence of trading signals and acts accordingly. Before you decide to program or order a trading robot, you
Hey greetings, It my pleasure to met you . I need a MT4 develop that can develop an EA based on alert . If you are a professional MT4 programmer you can kindly bid for this project and let proceed
Hi I do not know why but my other order have been deleted and it's not me... I do not know what i did wrong, let me explain again. I dont want you to crack a code or decompile. I want to create a scalper EA with the option I do ask. I had somebody built a EA called Drawdown manager for me that I do use to manage risk of any EA that I test and I have the built code. My problem is that I cannot back test this EA Fast
Wavetrend 3D by Jdehorty open source to MT4 and then to .dll format. I do not want simple wavetrend I want the multitime frame one. If you are familiar with c++ or Delphi this is necessary https://www.youtube.com/watch?v=S64LjZVr9jE code python https://github.com/artnaz/wavetrend-3d
You must have knowledge of forex tester. Don't bother unless you do The indicator to convert from trading view to FOREX TESTER 5 -- wave trend 3d by JDEHORTY Please note this is a multi time frame indicator. Im not interested in any other wave trend indicator. It has to be a conversion of this indicator. Forex tester conversion https://www.youtube.com/watch?v=S64LjZVr9jE code python
The requirements for the order of robots XAUUSD and XAGUSD EURUSD forex in the STOP loss TAKE profit signal in this order, you can bring benefits to the changes in the market, that is, when the market changes frequently, it will also help to prevent losses and bring great profits all work to trade high and low python line position
I'm seeking a C# developer with Quantower experience to assist me in exporting data from the Option Analytic panel in real-time via an API. This data will be exported based on a window app, not a web app. You can review the document at the following link : . https://github.com/Quantower/Examples/blob/master/IndicatorExamples/GetOptionsInfo.cs Please check it before bidding NOTE : - Quantower is an app, not web
hello, I need quick help with ninjatrader tool, market replay is not updating candles on chart, even though time is updating on playback window. I need someone who can help remotely to see what is issue. are you available
I want to create an EA MT5 that can 1. identify support and resistance (based on close candles) 2. mark snr breakout 3. multitimeframe breakout scanner 4. scan the valid setup that appears 5. available for manual marking, INFO SPREAD & TIME NEXT BAR 6. sends alert notification to Telegram I need a professional and experienced developer with fast and good work according to what I want. if you are interested I will

Project information

Budget
30 - 40 USD
For the developer
27 - 36 USD