Automatically close all open trades when a cumulative open profit/loss threshold gets breached

MQL5 Scripts Integration Forex

Job finished

Execution time 18 hours
Feedback from employee
Had a wonderful time working together, hopefully we can do it again in future! thanks a lot!
Feedback from customer
Excellent work, very receptive to feedback and responsive when I had questions (of which I had a lot, being completely new to the world of trading automation). Would definitely recommend.

Specification

Ok so I'm completely new to the MT world, and know absolutely nothing about coding.  I've always just been a chart it out on tradingview kinda guy.  But I have this different technique for Taking profit/loss I really want to try, and it would require some automation to do it.  What i'm looking for is, if  9 trades open, and I have a take profit value in mind that i want to reach, say $1500.  If my portfolio of open trades reaches my desired target of $1500 combined across all my open trades, to have that event automatically trigger liquidation of all my open trades?  Basically, instead of having a target in mind for each individual trade, I want to try setting a general profit target/loss limit, that once its reached, i quit while i'm ahead/cut my losses, so to speak.   Has to be MT5 not MT4, as my system requires the use of Buy/sell stop limit orders

Responded

1
Developer 1
Rating
(166)
Projects
189
10%
Arbitration
37
38% / 35%
Overdue
5
3%
Working
2
Developer 2
Rating
(67)
Projects
79
33%
Arbitration
6
50% / 33%
Overdue
7
9%
Free
3
Developer 3
Rating
(2)
Projects
3
33%
Arbitration
1
0% / 100%
Overdue
0
Free
4
Developer 4
Rating
(19)
Projects
24
17%
Arbitration
7
0% / 71%
Overdue
3
13%
Free
5
Developer 5
Rating
(79)
Projects
111
37%
Arbitration
0
Overdue
4
4%
Free
6
Developer 6
Rating
(183)
Projects
325
32%
Arbitration
33
42% / 27%
Overdue
96
30%
Working
7
Developer 7
Rating
(17)
Projects
24
33%
Arbitration
5
20% / 40%
Overdue
8
33%
Free
8
Developer 8
Rating
(188)
Projects
212
58%
Arbitration
9
11% / 89%
Overdue
8
4%
Free
9
Developer 9
Rating
(258)
Projects
395
28%
Arbitration
69
19% / 49%
Overdue
120
30%
Free
10
Developer 10
Rating
(28)
Projects
47
23%
Arbitration
13
31% / 15%
Overdue
12
26%
Free
11
Developer 11
Rating
(3)
Projects
1
100%
Arbitration
1
0% / 0%
Overdue
0
Free
12
Developer 12
Rating
(647)
Projects
1295
67%
Arbitration
84
26% / 49%
Overdue
338
26%
Free
13
Developer 13
Rating
(12)
Projects
14
29%
Arbitration
0
Overdue
0
Free
14
Developer 14
Rating
(2)
Projects
2
50%
Arbitration
0
Overdue
0
Free
15
Developer 15
Rating
(100)
Projects
125
23%
Arbitration
12
0% / 67%
Overdue
22
18%
Working
16
Developer 16
Rating
(144)
Projects
198
42%
Arbitration
20
25% / 55%
Overdue
9
5%
Free
17
Developer 17
Rating
(416)
Projects
470
34%
Arbitration
25
40% / 44%
Overdue
6
1%
Loaded
18
Developer 18
Rating
(144)
Projects
230
60%
Arbitration
3
67% / 0%
Overdue
6
3%
Free
19
Developer 19
Rating
(250)
Projects
400
38%
Arbitration
82
41% / 20%
Overdue
69
17%
Loaded
20
Developer 20
Rating
(26)
Projects
23
39%
Arbitration
26
8% / 38%
Overdue
0
Free
21
Developer 21
Rating
(3)
Projects
4
50%
Arbitration
1
100% / 0%
Overdue
2
50%
Free
22
Developer 22
Rating
(62)
Projects
140
46%
Arbitration
19
42% / 16%
Overdue
32
23%
Free
23
Developer 23
Rating
(96)
Projects
143
76%
Arbitration
0
Overdue
2
1%
Free
24
Developer 24
Rating
(82)
Projects
86
57%
Arbitration
25
0% / 84%
Overdue
19
22%
Free
25
Developer 25
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
26
Developer 26
Rating
(12)
Projects
12
0%
Arbitration
0
Overdue
1
8%
Free
27
Developer 27
Rating
(65)
Projects
71
30%
Arbitration
8
0% / 88%
Overdue
5
7%
Free
Similar orders
Hi, I've developed an Fratile brake and retest EA. I have not been able to backtest it since i cant get it to work. I need your help in checking the code and making sure that the code is intact and all functions will work as they are or perhaps add your improvements. Please see a detailed description of the EA below. Reachout to me and i will provide you with the full code. Fractal Breakout EA Overview The Fractal
I would like to find a freelancer who can create an indicator or expert advisor about COT reports. I want it to automatically get the results and added to the indicator. it should be able to tell me if the banks are buying oir selling more for the week. it should also advise the long and short position for the pairs that i am looking at
Hi, I am looking for a scalping bot, that will have below criteria: 1. Take a position in the direction of the market with 1 STANDARD LOT. 2. Wait for 125 seconds after entering the position. 3. Exit the position when the position shows $10 profit. 4. Scan multiple leading currencies for such setups. 5. More than 5 positions should not be open at a time. 6. Exit the position if the floating loss exceeds $100. 7
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
I want to build a well performance mt4 indicator or trading view indicator for my strategy, please you must make sure you are a professional in building mt4 indicator or trading view indicator with serveral years of experience, so if you are kindly react to this and let talk more on how you will get my indicator working
EA development 30+ USD
HELLO there, am looking for some one that have serveral years of experience in developing a well performance EA, that can use both mt4, mt5 platform for development, please you most be an expert in the coding of EA , THANK YOU
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
bonjour je cherche un developpeur pour coder un ea que j ai deja , il suffira juste de reproduire le meme , car cette ea fonctionne tres bien en demo mais pas en reel , je veux que celui ci fonctionne en reel , l ea sera donner au developpeur s 'occupant de reconstruire cette ea , merci a vous ! pour mt4
Hi, Greetings ! Can somebody help me with a Half Trend Scanner with Higher Time Frame Confluence feature please. I am willing to pay if thats the case. Kind regards. Anton
EMA cross premium 30 - 50 USD
The idea is that the crossing of the Moving average( blue and orange EMA) must happen below or above the three big moving average (green, red, and black) and that will be a valid signal. E.g. valid Sell signal, the crossing of blue and orange EMAs will happen below the three big EMAs without a single touch. E.g. valid buy signal, the crossing of blue and orange EMAs will happen above the three big EMAs without a

Project information

Budget
100 - 500 USD
For the developer
90 - 450 USD