Update an Existing EA with "Close All by Profit" Parameter and "Close All by Loss"

MQL5 Experts

Job finished

Execution time 3 hours
Feedback from employee
Всё прошло успешно! Я рад сотрудничеству!
Feedback from customer
Great developer. Great job. I highly recommend!

Specification

I have an EA which opens pending orders. I want to add the feature "Close All by Profit" and "Close all by loss". It means the EA should check the total profit from all open trades (floating profit). If it's greater than or equal to specified profit , the EA closes all orders. For example, if I set in the parameter 100, After having a floating profit of U$100 all orders will close.

Also add the feature "Close all by Loss". The EA check the total loss from all open trades (floating loss). When the loss reaches the floating loss specified, all orders will be closed.

For example, if I set in the parameter -100 (negative 100), After having a floating loss of U$-100 (negative 100) all orders will close.

After all orders are closed due to the profit or loss parameter, the EA must reset/resume its normal pending order logic automatically (open pending orders again based on the specified parameters already set).

See attached the EA which needs to be updated.


Files:

Responded

1
Developer 1
Rating
(290)
Projects
362
30%
Arbitration
37
27% / 65%
Overdue
10
3%
Loaded
Published: 10 codes
2
Developer 2
Rating
(402)
Projects
520
24%
Arbitration
61
57% / 25%
Overdue
60
12%
Working
3
Developer 3
Rating
(366)
Projects
414
55%
Arbitration
12
50% / 42%
Overdue
1
0%
Free
4
Developer 4
Rating
(68)
Projects
127
41%
Arbitration
19
47% / 53%
Overdue
33
26%
Free
5
Developer 5
Rating
(22)
Projects
28
7%
Arbitration
9
33% / 33%
Overdue
1
4%
Working
6
Developer 6
Rating
(28)
Projects
39
23%
Arbitration
14
0% / 93%
Overdue
4
10%
Free
7
Developer 7
Rating
(17)
Projects
21
19%
Arbitration
5
40% / 40%
Overdue
0
Free
8
Developer 8
Rating
(274)
Projects
403
28%
Arbitration
40
40% / 50%
Overdue
1
0%
Free
9
Developer 9
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
10
Developer 10
Rating
(217)
Projects
369
33%
Arbitration
34
41% / 29%
Overdue
108
29%
Free
Published: 1 code
11
Developer 11
Rating
(47)
Projects
67
37%
Arbitration
5
40% / 40%
Overdue
1
1%
Free
12
Developer 12
Rating
(3)
Projects
3
33%
Arbitration
0
Overdue
0
Free
13
Developer 13
Rating
(629)
Projects
707
42%
Arbitration
2
100% / 0%
Overdue
1
0%
Working
Published: 9 codes
14
Developer 14
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
15
Developer 15
Rating
(4)
Projects
4
50%
Arbitration
5
0% / 100%
Overdue
0
Free
16
Developer 16
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
17
Developer 17
Rating
(13)
Projects
23
39%
Arbitration
8
0% / 50%
Overdue
4
17%
Free
18
Developer 18
Rating
(34)
Projects
35
40%
Arbitration
0
Overdue
3
9%
Free
19
Developer 19
Rating
(8)
Projects
12
0%
Arbitration
5
20% / 80%
Overdue
2
17%
Free
20
Developer 20
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
1. Overview Build an MQL5 Expert Advisor for MetaTrader 5 that trades XAUUSD (Gold) as a scalper, using Heiken Ashi candles and a 50 EMA for entries. 2. Platform and symbol MetaTrader 5, Expert Advisor (.mq5 and compiled .ex5) Symbol: XAUUSD (must work with broker suffixes, e.g. XAUUSDm) Default timeframe: M5 (configurable; M1 to M15 should work) 3. Indicators Heiken Ashi candles, calculated inside the EA (no
I I am looking for an experienced MQL5 developer to build a robust, fully automated Expert Advisor (EA) for MetaTrader 5 based on a moving average pullback strategy. The EA must be optimized for multi-symbol and multi-timeframe processing, capable of running on a single chart while scanning and trading a user-defined list of currency pairs. 1. Core Strategy Logic * Trend Zone: The strategy utilizes the zone between
a { text-decoration: none; color: #464feb; } tr th, tr td { border: 1px solid #e6e6e6; } tr th { background-color: #f5f5f5; } Project Description I need an Expert Advisor (EA) for MetaTrader 5 (MT5) that can automatically trade Gold (XAUUSD) and major Forex pairs. The EA must analyze market conditions, open and close trades automatically, manage risk effectively, and be fully compatible with the MT5 Strategy Tester
Hi mql5 community, I am actually looking for a dev who applied to my previous job posted few days ago regarding " Need a faithful ready made hft scalper ea robot" He already reached out with an EA which I was validating its performance on my end, but unfortunately the weekend absolutely got my away from internet while have to pay attention to some physical tasks, and during those time I couldn't been able to check
I can pay you 70 USD for consultation if you have something valuable. no scam please, I am too smart to be scammed, Thank you for your patient and attention. Have a nice day for you and your family, May God bless you and your family :)
Hi i'm looking for a trading bot that will trade on mt5/MQL5. The bot must be able to follow trend and works on any pair,chart and symbol. All distance measured with ATR. Trend from a higher time frame (default H1) with a moving average;UP/DOWN. Support and resistance found automatically from recent swing highs and low nothing drawn on the chart. Two kinds of trades, each can be switched on/off. S/R trades; price
I am looking for an EA using MT5, trading XAUUSD on PuPrime-Live6, Standard account. LIMITATIONS No martingale, no grid. Start equity 1000 EUR. Leverate 1:500 Account in USD. PuPrime-Live6 All settings (risk, time, drawdown %, cooldown, lot size) shall be adjustable on init or backtest. VERIFICATIONS The EA needs to reach the profit goals on Actual Ticks, 100ms slippage in backtests for each month 2026. profit goal
Hi All developers, I am looking for a EA which makes minimum 1:5 risk reward ratio with buy stop and sell stop orders placed based on candle open based or candle high low based or any other strategy .... If any having please share it for TEST, After proper TESTING only I will confirm the job... Please read this and respond
I’m looking for an experienced Pine Script developer to build a custom H1 price-action indicator. Requirements: Calculate levels using H1 candles only. Use New York RTH (9:30 AM–4:00 PM), excluding extended hours. Create horizontal levels when candle direction changes; dojis break the sequence. Invalidate levels only when an H1 candle body crosses them, not wicks. Confirm levels after the RTH session closes to
MT5 Trading EA — EMA/RSI Strategy with Risk Management and Trade Protection Hello, I'm looking for an experienced MQL5 developer to build a reliable Expert Advisor for MetaTrader 5 based on a simple trend-following strategy. My main priority is not adding as many features as possible. I want a clean, dependable EA that follows the specified rules consistently in both Strategy Tester and live/demo trading. 1. Trading

Project information

Budget
35+ USD