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

MQL5 Scripts Intégration Forex

Tâche terminée

Temps d'exécution 18 heures
Commentaires du client
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.
Commentaires de l'employé
Had a wonderful time working together, hopefully we can do it again in future! thanks a lot!

Spécifications

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

Répondu

1
Développeur 1
Évaluation
(174)
Projets
200
12%
Arbitrage
39
38% / 33%
En retard
5
3%
Gratuit
Publié : 2 codes
2
Développeur 2
Évaluation
(67)
Projets
79
33%
Arbitrage
6
50% / 33%
En retard
7
9%
Gratuit
3
Développeur 3
Évaluation
(2)
Projets
3
33%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
4
Développeur 4
Évaluation
(19)
Projets
24
17%
Arbitrage
7
0% / 71%
En retard
3
13%
Gratuit
Publié : 2 articles, 4 codes
5
Développeur 5
Évaluation
(79)
Projets
111
37%
Arbitrage
0
En retard
4
4%
Gratuit
6
Développeur 6
Évaluation
(217)
Projets
369
33%
Arbitrage
34
41% / 29%
En retard
108
29%
Gratuit
Publié : 1 code
7
Développeur 7
Évaluation
(17)
Projets
24
33%
Arbitrage
5
20% / 40%
En retard
8
33%
Gratuit
8
Développeur 8
Évaluation
(188)
Projets
212
58%
Arbitrage
9
11% / 89%
En retard
8
4%
Gratuit
9
Développeur 9
Évaluation
(258)
Projets
396
28%
Arbitrage
70
19% / 49%
En retard
121
31%
Gratuit
10
Développeur 10
Évaluation
(29)
Projets
49
22%
Arbitrage
14
29% / 21%
En retard
13
27%
Gratuit
11
Développeur 11
Évaluation
(3)
Projets
1
100%
Arbitrage
1
0% / 0%
En retard
0
Gratuit
12
Développeur 12
Évaluation
(647)
Projets
1295
67%
Arbitrage
84
26% / 49%
En retard
337
26%
Gratuit
13
Développeur 13
Évaluation
(12)
Projets
14
29%
Arbitrage
0
En retard
0
Gratuit
14
Développeur 14
Évaluation
(2)
Projets
2
50%
Arbitrage
0
En retard
0
Gratuit
15
Développeur 15
Évaluation
(100)
Projets
125
23%
Arbitrage
12
0% / 75%
En retard
22
18%
Gratuit
16
Développeur 16
Évaluation
(144)
Projets
199
42%
Arbitrage
20
25% / 55%
En retard
10
5%
Gratuit
17
Développeur 17
Évaluation
(634)
Projets
743
34%
Arbitrage
49
53% / 39%
En retard
14
2%
Travail
18
Développeur 18
Évaluation
(170)
Projets
265
62%
Arbitrage
4
50% / 25%
En retard
10
4%
Travail
19
Développeur 19
Évaluation
(298)
Projets
478
40%
Arbitrage
105
40% / 24%
En retard
82
17%
Chargé
Publié : 2 codes
20
Développeur 20
Évaluation
(26)
Projets
23
39%
Arbitrage
26
8% / 38%
En retard
0
Gratuit
21
Développeur 21
Évaluation
(3)
Projets
4
50%
Arbitrage
1
100% / 0%
En retard
2
50%
Gratuit
22
Développeur 22
Évaluation
(64)
Projets
145
46%
Arbitrage
21
38% / 24%
En retard
32
22%
Gratuit
23
Développeur 23
Évaluation
(96)
Projets
143
76%
Arbitrage
0
En retard
2
1%
Gratuit
24
Développeur 24
Évaluation
(82)
Projets
86
57%
Arbitrage
25
0% / 84%
En retard
19
22%
Gratuit
25
Développeur 25
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
26
Développeur 26
Évaluation
(12)
Projets
12
0%
Arbitrage
0
En retard
1
8%
Gratuit
27
Développeur 27
Évaluation
(65)
Projets
71
30%
Arbitrage
8
0% / 88%
En retard
5
7%
Gratuit
Commandes similaires
Platform: MT5 only (no MT4 needed). Deliverable: an MT5 Expert Advisor with full source code (.mq5) that replicates the attached TradingView strategy (Pine Script v6, based on LuxAlgo's "ICT Killzones Toolkit" order blocks) as exactly as possible. Pasting the code into TradingView shows how it operates. I normally trade GBPUSD on the 5-minute chart Expected behavior: - Order block detection must match the Pine code
Requirements Specification: Debug & Error Fixing: Review the entire source code of the MQL expert advisor. Identify and fix all logical errors, bugs, and performance issues that cause trades to close prematurely or yield extremely low profits. Strategy Restructuring & Optimization: Fully analyze and optimize the current entry and exit strategy for USDJPY and GBPUSD. Modify, upgrade, or completely rewrite the entry
Its my analyisis 30 - 100 USD
Title: MT5 Expert Advisor (Trading Bot) Development: SMA/EMA + Smart Money Concepts Strategy Description (सीधा कॉपी-पेस्ट करें): I am an experienced trader and need a developer to build a custom trading bot (Expert Advisor) for MetaTrader 5 (MT5). My trading background: Strong knowledge of SMA and EMA (trend and crossover strategies) Full understanding of Smart Money Concepts (order blocks, liquidity, market
I am looking for an MQL5 developer to independently review an existing EA’s execution and position management logic. The review should focus on duplicate orders, trade isolation by symbol and magic number, broker price and volume constraints, error handling, and recovery after a terminal restart. This order is for an audit report. Please do not modify the source or change the trading strategy. For each finding
I have an existing compiled MetaTrader 5 Expert Advisor (EX5) designed for automated XAUUSD scalping. I want an experienced developer to assess and implement a solution to execute the EA’s original trading strategy through my broker’s FIX API. Requirements: Confirm the technical feasibility of connecting an existing MT5 EA to a broker FIX API. Explain how to obtain FIX API access and credentials from the broker
I’m looking for an experienced developer to build a fully automated XAUUSD scalping EA for MT5. Requirements: * Fast entries targeting small, profitable moves after trading costs. * Configurable fixed-target and trailing-stop modes. A $1 gold price move can trigger profit protection instead of closing the trade. * Once the profit trigger is reached, move the stop to cover costs and lock in a small net profit, then
I want to create an EA that will take trades according to a trading zone condition. The logic will start with the identification of a trading zone for BUY and SELL in the EA. After the trading zone has been identified, then the EA will use the current time frame prices to determine if the market will be a BUY or SELL. The market will be a BUY if the low price range goes above the lowest price after the installation
I have an existing compiled MT5 Expert Advisor (.ex5) for XAUUSD scalping. I need a developer to build a bridge that connects my existing EA to a broker’s FIX API, allowing its trading signals to execute orders directly through FIX instead of the standard MT5 trade server. I do not need a new trading strategy or a new EA. Please confirm whether this is technically possible without the EA source code, and explain your
The present project has two parts. Part 1. Please refer to attached folder 1.Past Week Input File Presently it uses Chrome browser. It should be converted to Microsoft Edge. Presently, there are UserID and Password attached to it. These should be replaced by a cmd prompt asking for UserID and Password. Price $15. Part 2. Please refer to folder 2.Weekly Schedule. For Part 2, You will need the file
Hello, I want to create a custom Expert Advisor (EA) for MetaTrader 5 based on 3 main confirmations: Market Structure & Price Action: Identify high time-frame trend direction (HL/LH). Chart Pattern: Detect classic continuous/reversal patterns (e.g. Cup and Handle, Double Bottom/Top) on trading timeframe. Volume Profile (PoC): Confirm entry when price breaks/retests the Point of Control (PoC) level. Risk Management &

Informations sur le projet

Budget
100 - 500 USD