Expert Advisor that sums up open Trades

Tarea técnica

Hi there.

Assume this scenario;

Opening Account Balance = $1000

Take Profit =$(+25)

Stop Loss =$(-9)

I'm in need of an Expert Advisor / Robot for Meta Trader 4 that sums up the total of 2or more open trades and if say after some time the sum of all open trades is +25, the Expert advisor/Robot closes all trades and locks in a profit of $25. The new Account Balance becomes; $1000+$25 = $1025.

conversely if the sum of all trades is in negative i.e $-7, again it closes all open trades and the new Account Balance becomes $1000 - $9 = $991. 

For Illustration Purposes;

In the Attached jpg file,

the Profit for the open trade eurusd is -7.79

the profit for the open trade usdjpy is -0.45

the Total profit of both open trades is thus -8.84.

Assuming my maximum planned loss was -8.84, I'd like an EA/Robot that would've closed both trades the moment the negative reached -8.84.

With an opening Account Balance of $5,000, my new balance becomes $5,000 - $8.84 = $4,991.16

I hope its clear.

Regards

Archivos adjuntos:

Han respondido

1
Desarrollador 1
Evaluación
(2346)
Proyectos
2951
63%
Arbitraje
125
44% / 26%
Caducado
429
15%
Libre
2
Desarrollador 2
Evaluación
(24)
Proyectos
28
32%
Arbitraje
1
0% / 0%
Caducado
0
Libre
Ha publicado: 1 ejemplo
3
Desarrollador 3
Evaluación
(114)
Proyectos
154
47%
Arbitraje
2
0% / 50%
Caducado
4
3%
Libre
4
Desarrollador 4
Evaluación
(365)
Proyectos
412
36%
Arbitraje
35
26% / 57%
Caducado
63
15%
Libre
5
Desarrollador 5
Evaluación
(298)
Proyectos
427
26%
Arbitraje
18
61% / 33%
Caducado
26
6%
Libre
Ha publicado: 8 ejemplos
6
Desarrollador 6
Evaluación
(772)
Proyectos
1039
44%
Arbitraje
50
8% / 50%
Caducado
116
11%
Libre
7
Desarrollador 7
Evaluación
(2675)
Proyectos
3414
68%
Arbitraje
77
48% / 14%
Caducado
342
10%
Libre
Ha publicado: 1 ejemplo
8
Desarrollador 8
Evaluación
(119)
Proyectos
127
41%
Arbitraje
3
33% / 67%
Caducado
0
Libre
9
Desarrollador 9
Evaluación
(169)
Proyectos
204
30%
Arbitraje
25
40% / 44%
Caducado
12
6%
Libre
10
Desarrollador 10
Evaluación
(61)
Proyectos
83
45%
Arbitraje
27
11% / 70%
Caducado
8
10%
Libre
11
Desarrollador 11
Evaluación
(221)
Proyectos
369
66%
Arbitraje
10
50% / 0%
Caducado
46
12%
Libre
12
Desarrollador 12
Evaluación
(617)
Proyectos
721
33%
Arbitraje
46
48% / 41%
Caducado
14
2%
Trabajando
13
Desarrollador 13
Evaluación
(7)
Proyectos
9
0%
Arbitraje
4
0% / 100%
Caducado
0
Libre
Ha publicado: 1 ejemplo
14
Desarrollador 14
Evaluación
(117)
Proyectos
138
41%
Arbitraje
30
7% / 77%
Caducado
17
12%
Libre
15
Desarrollador 15
Evaluación
(65)
Proyectos
87
39%
Arbitraje
3
0% / 33%
Caducado
29
33%
Libre
16
Desarrollador 16
Evaluación
(514)
Proyectos
553
53%
Arbitraje
13
69% / 15%
Caducado
3
1%
Libre
17
Desarrollador 17
Evaluación
(96)
Proyectos
143
76%
Arbitraje
0
Caducado
2
1%
Libre
18
Desarrollador 18
Evaluación
(24)
Proyectos
27
33%
Arbitraje
2
100% / 0%
Caducado
1
4%
Libre
19
Desarrollador 19
Evaluación
(251)
Proyectos
400
54%
Arbitraje
9
67% / 22%
Caducado
36
9%
Libre
Ha publicado: 2 ejemplos
20
Desarrollador 20
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
21
Desarrollador 21
Evaluación
(69)
Proyectos
146
34%
Arbitraje
13
8% / 62%
Caducado
26
18%
Libre
Ha publicado: 6 ejemplos
22
Desarrollador 22
Evaluación
(574)
Proyectos
945
47%
Arbitraje
309
58% / 27%
Caducado
125
13%
Libre
Solicitudes similares
Hello Traders, Have a trading strategy or idea you want to automate? I specialize exclusively in MQL5 development, helping traders turn their concepts into professional trading solutions. Custom Expert Advisors — automate your strategy and reduce manual execution Custom Indicators — transform your market ideas into powerful trading tools Fix & Debug — identify errors and get your existing code working properly
please share: Strategy description — entry/exit rules, indicators used, timeframe(s), and instrument(s) (a written explanation, screenshots, or an existing indicator/EA to reference all work) Risk management rules — position sizing method (fixed lot / % risk), stop loss / take profit logic, max drawdown or daily loss limits, and whether martingale/grid/hedging is involved Broker & account details — broker name
I need a unique grid trading system for XAUUSD that combines entry, controlled two-sided grid expansion, DCA (Dollar Cost Averaging) basket profit control, hedging. Unlike traditional grid EAs that only trade against price, this unique grid system should dynamically build positions in both directions based on market movement, allowing flexible adaptation to changing conditions ie the grid needs to dynamically move
I need an experienced MQL5 developer to create a fully automated MT5 Expert Advisor called Ayoub Gold EA , focused exclusively on XAUUSD (Gold) . Main requirements: Platform: MT5 / MQL5. Fully automated BUY and SELL trading on XAUUSD. Must support broker suffixes such as XAUUSD, XAUUSD.f and XAUUSDm. Trading strategy based mainly on Range Breakout with trend confirmation. EMA, ADX and ATR filters. London/New York
Mashiri 50 - 10000 USD
I need a custom MetaTrader 5 indicator designed specifically for XAUUSD gold trading. The indicator should identify potential buy and sell opportunities, display clear entry and exit signals on the chart, provide alerts, and help identify market trends and possible reversals
Looking for an experienced Sierra Chart ACSIL/C++ developer to customize an existing footprint chart. I need 3 things: 7-Day ATR – calculate and display a configurable 7-day ATR. Custom Footprint – modify my existing footprint chart to match my preferred layout/data display. Automatic LVN – detect and plot Low Volume Nodes automatically based on volume distribution. I already have a working footprint chart, so no
//———————————————————————————————————————————————————————————————————— struct S_MCAV { double matureSum; double totalSum; double value; void Init () { matureSum = 0.0; totalSum = 0.0; value = 0.5; } void AddContext (int ctx) { totalSum += 1.0; if (ctx == 1) matureSum += 1.0; } void ApplyDecay (double rate) { matureSum *= rate; totalSum *= rate; } void Update () {
1. Title Development of a Custom MQL5 Expert Advisor for XAUUSD (MetaTrader 5) 2. Requirements Specification Overview: I am looking for an experienced MQL5 developer to build a robust, fully custom Expert Advisor (EA) for MetaTrader 5 tailored for trading Gold (XAUUSD). Core Specifications & Features: Asset & Timeframe: Designed specifically for XAUUSD. Timeframe should be selectable directly from the EA inputs
Cerco uno sviluppatore MQL5 esperto per sviluppare da zero un Expert Advisor completamente nuovo per XAUUSD su MT5. Non desidero un semplice Expert Advisor basato su indicatori fissi. Desidero un sistema di trading dinamico e adattivo, in grado di adattare il proprio comportamento alle mutevoli condizioni di mercato di XAUUSD. Lo sviluppatore dovrebbe essere libero di combinare qualsiasi tecnica ritenuta opportuna
I am looking for a Senior MQL5 Developer to create a new MetaTrader 5 Expert Advisor from scratch. I will provide a complete Requirements Specification containing objective entry, exit and risk-management rules. This is not a request to copy or decompile an existing product. Project requirements: Clean and modular MQL5 source code. Exact implementation of the supplied strategy. One signal evaluation per configured

Información sobre el proyecto

Presupuesto
30 - 60 USD
Plazo límite de ejecución
de 1 a 60 día(s)