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
(174)
Projects
199
12%
Arbitration
38
37% / 34%
Overdue
5
3%
Working
Published: 2 codes
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
Published: 2 articles, 4 codes
5
Developer 5
Rating
(79)
Projects
111
37%
Arbitration
0
Overdue
4
4%
Free
6
Developer 6
Rating
(214)
Projects
365
32%
Arbitration
34
41% / 29%
Overdue
108
30%
Free
Published: 1 code
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
396
28%
Arbitration
69
19% / 49%
Overdue
121
31%
Free
10
Developer 10
Rating
(29)
Projects
49
22%
Arbitration
14
29% / 21%
Overdue
13
27%
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
199
42%
Arbitration
20
25% / 55%
Overdue
10
5%
Free
17
Developer 17
Rating
(556)
Projects
643
33%
Arbitration
42
40% / 45%
Overdue
11
2%
Busy
18
Developer 18
Rating
(163)
Projects
258
61%
Arbitration
4
50% / 25%
Overdue
10
4%
Free
19
Developer 19
Rating
(296)
Projects
475
40%
Arbitration
105
40% / 24%
Overdue
80
17%
Busy
Published: 2 codes
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
(64)
Projects
144
46%
Arbitration
20
40% / 15%
Overdue
32
22%
Working
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
I need a MT5 EA to copy my trades to the MatchTrader API server. It must be able to copy every aspect of the trade including the Lot Size, Take Profit, Stop Loss and Trailing Stop. Below are the credentials the broker has provided. Account number: "" Username: "" Password: "" Platform URL: https://mtr.gooeytrade.com/
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
There is a programming god without EA here. I want to find someone to make an EA to operate gold and silver. There is a model, but it can't run. So I want to find someone to make professional improvements to make my EA run. If you are interested, you can WECHAT: 15113958263. Please note EA when adding friends
Iam seeking for a good trade robot/indicator debugging developer to finalize and close profits for me,in both my exneas blocker and MT5,for expert advisor for trading both gold xausd and sliver xagusd,l really want a perfect robot that can herence and risk management principles,not to leave out am a beginner
I am looking for non-repainting indicator to run in all sessions for scalping gold , happy to discuss if you have developed such indicators which can show profit and stop loss levels
Hello! I want to buy two indicators: A Support and Resistence Indicator and a Trendline Indicator. Support and Resistence Indicators needs to automatically draws Support and Resistance lines based on High and Low Candle in every time-frame (If possible time-frame needs to be in inputs and choose by me what time-frame i want indicator to draw lines) Trendline Indicator needs to automatically draws Trendline Channels
Title: SEEKING: Proven SMC/Order Block EA for XAUUSD – Live Track Record Required (<5% Max DD) ​ Job/Request Description: I am looking to acquire or license a high-performance, fully automated Expert Advisor (EA) specifically optimized for XAUUSD (Gold) . The strategy must be strictly based on Smart Money Concepts (SMC) , utilizing Order Blocks, Liquidity sweeps, and Market Structure Shifts (MSS). ​ Technical
A SPECIFICATION: NESTED MULTI-TIMEFRAME MOMENTUM (NMTM) 1. CORE OBJECTIVE The EA is designed to identify institutional Supply and Demand zones on the H4 timeframe that are "nested" within Daily (D1) zones. It filters for high- momentum "Leg-Out" moves and only trades in the direction of the Daily trend. 2. PHASE 1: TREND & CONTEXT FILTERS (DAILY) The EA must first confirm the Daily bias. No H4 zones are valid if they
I already have a fully developed MT5 Expert Advisor with all required prop firm features, including: Risk management Daily loss & max drawdown limits Spread & slippage filters News filter Trade management system The EA structure is complete. 👉 What I need is a professional developer to replace ONLY the entry logic with a high-quality, rule-based trading strategy. 🚨 STRICT REQUIREMENT (READ CAREFULLY): I am NOT
FireDire 30+ USD
I want a prop-firm–compliant trading robot, not a fast or aggressive one. Objectives: – Pass a prop firm challenge safely within 2–4 weeks, not 1 week. – Focus on capital protection first, profit second. Risk & Money Management: – Risk per trade: 0.25%–0.5% max – No martingale, no grid, no recovery trading – One position per signal (optional scaling only after BE) – Global daily risk cap: 1%–1.5% – Respect both daily

Project information

Budget
100 - 500 USD