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
(172)
Projects
195
11%
Arbitration
37
38% / 35%
Overdue
5
3%
Loaded
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
(185)
Projects
327
32%
Arbitration
33
42% / 27%
Overdue
98
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% / 75%
Overdue
22
18%
Free
16
Developer 16
Rating
(144)
Projects
198
42%
Arbitration
20
25% / 55%
Overdue
9
5%
Free
17
Developer 17
Rating
(491)
Projects
563
33%
Arbitration
27
44% / 44%
Overdue
9
2%
Busy
18
Developer 18
Rating
(157)
Projects
246
60%
Arbitration
3
67% / 0%
Overdue
7
3%
Free
19
Developer 19
Rating
(261)
Projects
427
38%
Arbitration
86
44% / 19%
Overdue
71
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
the code wasn't mine, i have got it somewhere on the web, but i like the performance of the EA, so i want to use it on mt5 platform. the given code based on price movements with ladder entry concept
Preciso de um EA, que faça o fecho automático de operações abertas no final da sessão e nas notícias de alto impacto. Um EA simples com apenas 1 função. Fecho das operações abertas
Enter buy trade at close of candle when bar closes above the 3 emas. Emas are 34 ema, 64 ema and 128 ema. For a buy trade the 34 ema must be above the other two emas. The 64 ema should be in the middle. The 128 ema should be below the other two emas. For a buy trade the Awesome Oscillator should be above the middle line and colored green. Exit a buy trade when price touches 64 ema. Sell trade same conditions as buy
I want to make AI based on Attached Picture Swing High low. If you have experience can share demo first. Stop loss, take profit, trailing , break even ,DD etc. also amiable
Hello, I’m looking for a TradingView indicator that fits my forex trading needs. If you can create or customize one for me, please reach out. I'd appreciate your help! Thanks in advance."
I need someone who can code a new EA from scratch and also know how to integrate AI into the EA and use AI and market sentiments along with news to then open positions. I have the description of the job ready. Need someone serious, with experience and who will help optimize the current strategy with their expertise. Thanks
I’m looking for an experienced MQL5 developer to create a custom Break of Structure (BoS) Indicator for MetaTrader 5. This indicator should automatically detect and mark key market structure breakpoints in real-time, offering traders clear visual signals when the market experiences a structural shift. The indicator should include the following features: Automatic detection of Break of Structure (BoS) and Change of
Pls I need help I don’t have much but pls accept my little payment for the work thanks 🙏 mt5 file Once it opens buy and move positively to buy let it use auto trailing to follow the trend that’s if I choose to use trailing option and before the trailing starts it must reach the actual profit target example if I set profit target to 500 then once profit is at 500 let trailing immediately protect it and any 1 pip
I need a tested and profitable EA. I don’t want backtested EA but real live tested. At least, 5~10 % per month. Name your price!!! I also have a backtested EA that can’t make profit at the end of the month
Hey greetings am in need of a developer that can convert my simple tradingview indicator to MT4 I have the source code of the indicator and is also a public indicator on Tradingview site Kindly bid and let started

Project information

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