Expert Advisor that sums up open Trades

Specification

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

Responded

1
Developer 1
Rating
(2317)
Projects
2916
63%
Arbitration
124
44% / 25%
Overdue
429
15%
Loaded
2
Developer 2
Rating
(24)
Projects
28
32%
Arbitration
1
0% / 0%
Overdue
0
Free
Published: 1 code
3
Developer 3
Rating
(114)
Projects
154
47%
Arbitration
2
0% / 50%
Overdue
4
3%
Free
4
Developer 4
Rating
(365)
Projects
412
36%
Arbitration
35
26% / 57%
Overdue
63
15%
Free
5
Developer 5
Rating
(298)
Projects
427
26%
Arbitration
18
61% / 33%
Overdue
26
6%
Free
Published: 8 codes
6
Developer 6
Rating
(772)
Projects
1039
44%
Arbitration
50
8% / 50%
Overdue
116
11%
Free
7
Developer 7
Rating
(2654)
Projects
3371
68%
Arbitration
77
48% / 14%
Overdue
342
10%
Free
Published: 1 code
8
Developer 8
Rating
(119)
Projects
127
41%
Arbitration
3
33% / 67%
Overdue
0
Free
9
Developer 9
Rating
(169)
Projects
204
30%
Arbitration
25
40% / 44%
Overdue
12
6%
Free
10
Developer 10
Rating
(59)
Projects
81
43%
Arbitration
27
11% / 70%
Overdue
8
10%
Free
11
Developer 11
Rating
(221)
Projects
369
66%
Arbitration
10
50% / 0%
Overdue
46
12%
Free
12
Developer 12
Rating
(563)
Projects
651
33%
Arbitration
41
41% / 46%
Overdue
11
2%
Busy
13
Developer 13
Rating
(7)
Projects
9
0%
Arbitration
4
0% / 100%
Overdue
0
Free
Published: 1 code
14
Developer 14
Rating
(117)
Projects
138
41%
Arbitration
30
7% / 77%
Overdue
17
12%
Free
15
Developer 15
Rating
(65)
Projects
87
39%
Arbitration
3
0% / 33%
Overdue
29
33%
Free
16
Developer 16
Rating
(511)
Projects
549
53%
Arbitration
13
69% / 15%
Overdue
3
1%
Free
17
Developer 17
Rating
(96)
Projects
143
76%
Arbitration
0
Overdue
2
1%
Free
18
Developer 18
Rating
(24)
Projects
27
33%
Arbitration
2
100% / 0%
Overdue
1
4%
Free
19
Developer 19
Rating
(251)
Projects
400
54%
Arbitration
9
67% / 22%
Overdue
36
9%
Free
Published: 2 codes
20
Developer 20
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
21
Developer 21
Rating
(69)
Projects
146
34%
Arbitration
13
8% / 62%
Overdue
26
18%
Free
Published: 6 codes
22
Developer 22
Rating
(574)
Projects
945
47%
Arbitration
309
58% / 27%
Overdue
125
13%
Free
Similar orders
Technical Specifications: "Dawn Range Breakout" Expert Advisor (Final Version) 1. Overview The purpose of this EA is to capture the breakout of a specific hourly range on Gold (XAUUSD) or any other pair, with a focus on high-precision entry, strict risk management (1 trade per day), and partial profit taking. 2. Core Trading Logic Timeframe: M15. Reference Hour: The EA must identify the High and Low of the H1 candle
I need an Expert Advisor based on SK indicator for gold trading. Entry: - Open trade immediately when SK signal appears Stop Loss: - Fixed stop loss = $200 per trade Take Profit: - TP1: close 50% of the position - TP2: final target Lot Size: - Fixed lot = 0.02 Pair: - XAUUSD only Timeframe: - M15 Rules: - Only one trade per signal - No duplicate trades - Move stop loss to breakeven after TP1 Requirements: - The EA
I need a very profitable scalping robot for gold trading at M1 timeframe. I should have adjustable trailing stop, step, SL, TP in points it should use both trade opening and pending orders just as in the links below https://vt.tiktok.com/ZSHj9cD5w/&nbsp ; https://vt.tiktok.com/ZSHjHFvkg/&nbsp ;
AI Trading Bot 30 - 80 USD
Essential Components for Indicator Specification Objective & Overview: Briefly describe what the indicator calculates (e.g., trend, momentum, volatility) and its main purpose. Input Parameters (Variables): List all user-definable inputs (e.g., Moving Average periods, ATR multiplier) to avoid hardcoding values. Detailed Logic/Calculation Rules: Explain the formula or logic to calculate indicator values. Define
looking for Expert to create or ready made solution for bonus hedge auto set cross trading of opposite trading strategy. the expert may guide what max and best he can do to make the EA perfect
Simplebot 30+ USD
#include <Trade/Trade.mqh> CTrade trade; input double LotSize = 0.1; input int FastMA = 10; input int SlowMA = 20; int fastHandle, slowHandle; // Initialize indicators int OnInit() { fastHandle = iMA(_Symbol, PERIOD_CURRENT, FastMA, 0, MODE_SMA, PRICE_CLOSE); slowHandle = iMA(_Symbol, PERIOD_CURRENT, SlowMA, 0, MODE_SMA, PRICE_CLOSE); return(INIT_SUCCEEDED); } void OnTick() { double fastMA[2]; double
I am seeking an expert MQL5 developer for a paid architectural consultation. I am currently in the process of building a trading platform and need a deep dive with a specialist who understands the "under the hood" mechanics of high-frequency execution and systematic bot design. Topics for Discussion: Engine Logic: Best practices for building a robust, low-latency execution engine on MT5. Risk Frameworks: Implementing
I need a mt5 Expert advisor ea to manage intraday trades with strict risk management. The EA must -Handle between 5 to 8 clean trades a day max altogether throughout all 3 sessions. no big news trading times and no overnight trades -Use 1% on forex pairs and upto 2% on XAUUSD risk per trade - Automatically calculate lot size based on stop loss -use fixed RR ratio [1:2] For forex pairs, the stop loss should be
Ninjatrdaer Script 500 - 1000 USD
I am looking to purchase a ninjatrader script, if there is any for sale, i mean a ready made ninjatrdaer script that trade futures, i need the seller to show me a backtest of the system, you know send some results, I would like to see a 1 year and YTD backtest
I need a clean, bug-free MT5 Expert Advisor (MQL5) based on this exact mechanical scalping strategy on M5 timeframe for EURUSD. Indicators (built-in): - EMA 9 and EMA 21 on M5 - RSI 14 - ADX 14 (>25 for strong trend) - H1 EMA 21 above/below H1 EMA 9 for trend alignment Entry Rules (ALL must be true): BUY: EMA9 crosses above EMA21 (on closed bar) + RSI > 50 + ADX > 25 + H1 EMA21 > H1 EMA9 SELL: Mirror (cross below

Project information

Budget
30 - 60 USD
Deadline
from 1 to 60 day(s)