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
等级
(191)
项目
232
30%
仲裁
1
100% / 0%
逾期
9
4%
空闲
2
开发者 2
等级
(12)
项目
12
25%
仲裁
0
逾期
1
8%
空闲
3
开发者 3
等级
(20)
项目
29
55%
仲裁
0
逾期
0
空闲
4
开发者 4
等级
(430)
项目
606
55%
仲裁
48
23% / 56%
逾期
178
29%
空闲
5
开发者 5
等级
(349)
项目
463
51%
仲裁
41
24% / 49%
逾期
149
32%
空闲
6
开发者 6
等级
(19)
项目
27
19%
仲裁
6
33% / 33%
逾期
2
7%
空闲
7
开发者 7
等级
(34)
项目
49
43%
仲裁
3
0% / 33%
逾期
14
29%
空闲
8
开发者 8
等级
(65)
项目
71
30%
仲裁
8
0% / 88%
逾期
5
7%
空闲
9
开发者 9
等级
(5)
项目
7
43%
仲裁
4
0% / 75%
逾期
3
43%
空闲
10
开发者 10
等级
(9)
项目
8
0%
仲裁
5
0% / 80%
逾期
1
13%
工作中
11
开发者 11
等级
项目
0
0%
仲裁
0
逾期
0
空闲
12
开发者 12
等级
(40)
项目
86
13%
仲裁
30
30% / 47%
逾期
35
41%
已载入
13
开发者 13
等级
(49)
项目
134
27%
仲裁
62
13% / 53%
逾期
58
43%
空闲
14
开发者 14
等级
(54)
项目
65
52%
仲裁
5
40% / 60%
逾期
22
34%
工作中
15
开发者 15
等级
(62)
项目
140
46%
仲裁
19
42% / 16%
逾期
32
23%
空闲
相似订单
Hello dear developers! MT4 EA I want you to help me create a trading robot. I already had an unpleasant experience with a developer who said he would do it for me but didn't know how to do it. Thus he blocked some money from me. Now I want to see who knows how to program such a robot. For this reason, I will initially present only a fragment of this robot. Whoever knows how to correctly program this fragment
Hello great developer can you help me with MT5 indicator developing? Here is a document that describes the filters that will need to be added to my existing custom indicator. let me know if you have any questions or if anything in the document is unclear I will be looking for great developer to bid for this project Best regards
Trade Entry Rule : 1 . New Arrow Higher or Lower Appear : Entry . (Range: {Input}) After Entry Trailing Stop Trails { Trail Step (Input) } 2 . Lot Size { Input } 3 . Take Profit { Input } 4 . Max Number of Trades { Input } 5 . Total Number of Trades per Entry { Input } ---------------------------------------------------------------------------- 6 . Spread Filter { Input }
Hello how are you doing? Can you help me with a projects connecting trend lines to pivot points on a wave, for trendlines, color detention, and dynamic visualization? I have a project I’d like you to look at. I need a pine script code to capture the different Trendline colors that cross both above and below horizontal lines on the wave indicator
Hi, I want a custom indicator to be coded based on 2 default Indicators. Add alerts for signals and news filter alerts to be sent through metaquotes id, email and phone. Popup alerts for pc/laptop as well. I would like it to have a display panel that logs the trade history and a buy/sell button with risk % based on balance and equity, fixed lots and some other features
Hello I am looking for a developer to help me do modification on my custom ninjatrader 8 strategy and also backtest it in other to work perfectly your expertise is highly needed for this project Kindly reach out to me and let get started on the project Thanks
Hi guys I eould like to know if it‘s possible to draw highs and lows with a horizontal line in the line chart? It should be an indicator with buffers that I can integrate it into an EA. If it‘s possible please explain how you would detect those highs and lows. Thanks in advance
I need an expert in the development of a fully automated trading robot For MetaTrader. The Trading Robot must be "Web based" so it can be accessed or used through a website, You can view a screenshot here; https://www.awesomescreenshot.com/image/48030918?key=79b0ff91455d862746e9b649341f4cdb Why do i need? Simple Enough, This is what i need from my Trading Robot EA. The Trading Robot can only be accessed through a
Metatrader 30+ USD
I would like to calculate the deviations between the companies listed below with Meta Trader. Would you be interested? BETWEEN 01.00 AT NIGHT AND 00.00 OF THE NEXT DAY (FOR HOURS WHEN THE GOLD MARKET IS OPEN) *Instant comparison of prices of the same parities of different companies *Determination of deviation rates in downward or upward movements (average prices, prices below and above the average) *Detection of
Hello I'm in possesion of a straightforward MT% Expert AdvisorThat I want to convert into DXTrade. Are you able to do this conversion? Kindly let me know if the fil atached will be enough

项目信息

预算
30 - 40 USD
开发人员
27 - 36 USD