MT5 EA to close all trades in profit

MQL5 Experts

Job finished

Execution time 43 minutes
Feedback from employee
Всё отлично! Чёткое задание!
Feedback from customer
Vitaly is a fantastic Developer. He even helped me to solve some issues even after completing the job and suggested many things about other issues. He is a great coder! I'll work with him again.

Specification

Criteria: Create a New MT5 EA, that will do only the following:

If the “Account Profit” ≥ “Profit Target”

--> Close ALL open positions in ALL pairs in this trading account.


“Account Profit” is the floating profit/loss of this Trading Account which is equal to “Equity minus Balance”.

“Profit Target” should be an external variable in the account currency (Dollar) which can be a positive or negative number.


Display:

On the upper right hand corner of the chart, below the EA name, display the following text in Arial 12 font yellow color-

 

Profit Target: [from the external variable]

Current Profit: [real time profit/loss data]

 

Please Note:

1. Once the “Profit Target” is reached, ALL open positions must be closed immediately. Some similar EAs start closing the positions but once the Account Profit goes below the Profit Target value, it stops closing positions. Which should not happen in thie EA.

2. After all open positions are closed, the EA should start to look for the Profit Target” again and close all positions again when the Profit Target” is reached. This should be continued unless the EA is manually removed from the chart.


Responded

1
Developer 1
Rating
(139)
Projects
181
24%
Arbitration
23
22% / 39%
Overdue
13
7%
Free
2
Developer 2
Rating
(614)
Projects
691
42%
Arbitration
2
100% / 0%
Overdue
1
0%
Free
Published: 9 codes
3
Developer 3
Rating
(132)
Projects
178
39%
Arbitration
4
25% / 50%
Overdue
14
8%
Free
4
Developer 4
Rating
(46)
Projects
60
53%
Arbitration
7
86% / 0%
Overdue
2
3%
Free
5
Developer 5
Rating
(145)
Projects
169
50%
Arbitration
22
14% / 55%
Overdue
22
13%
Free
6
Developer 6
Rating
(163)
Projects
258
61%
Arbitration
4
50% / 25%
Overdue
10
4%
Free
7
Developer 7
Rating
(31)
Projects
41
20%
Arbitration
9
11% / 89%
Overdue
5
12%
Free
8
Developer 8
Rating
(15)
Projects
23
9%
Arbitration
7
29% / 57%
Overdue
2
9%
Free
9
Developer 9
Rating
(15)
Projects
19
42%
Arbitration
1
0% / 100%
Overdue
3
16%
Free
Published: 4 codes
10
Developer 10
Rating
(3)
Projects
3
0%
Arbitration
2
0% / 100%
Overdue
0
Free
11
Developer 11
Rating
(22)
Projects
18
6%
Arbitration
31
3% / 65%
Overdue
5
28%
Free
12
Developer 12
Rating
(568)
Projects
641
41%
Arbitration
25
48% / 36%
Overdue
46
7%
Working
13
Developer 13
Rating
(137)
Projects
167
35%
Arbitration
11
91% / 0%
Overdue
0
Free
14
Developer 14
Rating
(96)
Projects
143
76%
Arbitration
0
Overdue
2
1%
Free
15
Developer 15
Rating
(361)
Projects
629
72%
Arbitration
14
43% / 7%
Overdue
28
4%
Free
Published: 9 codes
Similar orders
Description Infinite Tsukuyomi EA MT5 is an advanced fully automated Expert Advisor designed to identify high-probability trading opportunities using a combination of trend analysis, market structure, momentum, and intelligent risk management. Inspired by the concept of absolute control, the EA continuously scans the market, waits patiently for optimal entries, and executes trades with precision while minimizing
Spärtã Ackah 50+ USD
I go by the name Spärtã Ackah, and this is my first time trying this trading, and I am also a beginner so sometimes I will need guide lines, and most atimes I feel very difficult to withdraw the money
Master mind 30+ USD
Start ↓ Detect Trend (H4) ↓ Confirm Structure (H1) ↓ Wait for Pullback ↓ Check Indicators ↓ Calculate Confidence Score ↓ Score ≥ 80? ├── No → Wait └── Yes ↓ Calculate Lot Size ↓ Place Order ↓ Set Stop Loss ↓ Set Take Profit ↓ Manage Trade ↓ Move to Break-even ↓ Trail Stop ↓ Close Trade. IF Price > EMA200 (H4) AND EMA50 > EMA200 (H4) AND ADX > 25 AND RSI between 55 and 70 AND MACD Main > Signal AND Bullish engulfing
PROJECT: Gold (XAUUSD) Scalping Expert Advisor – M1 Timeframe OVERVIEW This EA is designed as a "sniper" scalper for Gold on the M1 chart. It does not enter trades randomly — it waits for a confirmed entry signal before firing, similar to a sniper waiting for the perfect shot rather than a random shooter. ENTRY LOGIC - The EA must wait for a confirmation signal before opening a trade (do not enter on the first sign
Do you have a bot that yoi think it makes real income ' i will buy it after testing i want to test it first you send me demo version or i give you my demo account both ways works.testing is for free and i don't pay for that . please don't semd me videos or files of you testing the bot already i will not accept another other method of testing
Do you have HFT bot that yoi rhink it makes real money' i will buy it after testing i want to test it first you send me demo version or i give you my demo account both ways works.testing is for free and i don't pay for that . please don't semd me videos or files of you testing the bot already i will not accept another other method of testing
A robot 50+ USD
HIGH-FREQUENCY M5/M15 CONCURRENT ENTRY SNIPER import time class HighFrequencySniper: def __init__(self): self.target_profit = 25.00 # Targeted Delta Move self.max_execution_time = 3600 # 1 Hour Sandbox (Seconds) self.lot_allocation = "CALIBRATED_TO_RISK" def execute_hft_scan(self, current_price, m5_rsi, m15_order_block): print(f"[SCANNING] Current Kernel Metric: ${current_price:.2f
# HIGH-FREQUENCY M5/M15 CONCURRENT ENTRY SNIPER import time class HighFrequencySniper: def __init__(self): self.target_profit = 25.00 # Targeted Delta Move self.max_execution_time = 3600 # 1 Hour Sandbox (Seconds) self.lot_allocation = "CALIBRATED_TO_RISK" def execute_hft_scan(self, current_price, m5_rsi, m15_order_block): print(f"[SCANNING] Current Kernel Metric: ${current_price:.2f}")
I need a trading bot, please i need this project urgently and when messaing me kindly send me samples of past works and dont forget i need the project to be done as soon as possible
Hello. I am looking to buy an profitable MT5 EA that can generate monhtly profits of at least 5%-10%. It is important that the EA has a smooth equity curve - meaning that it doesn't end months in a loss and that it is able to sustain long periods of profitable days/months. The EA can be a grid, scalping or any other strategy. Preferably to trade GOLD or US500 You should be able to send an .ex5 file for testing on a

Project information

Budget
30 USD
Deadline
to 2 day(s)