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
(592)
Projects
668
41%
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
(44)
Projects
55
51%
Arbitration
6
83% / 0%
Overdue
1
2%
Working
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
I need an Expert Advisor (EA) for MetaTrader (MT4 or MT5) based on the following scalping strategy. Platform: MT4 or MT5 Symbol: EURUSD (should work on other pairs as well) Timeframe: M1 or M5 Indicators: - EMA 9 - EMA 21 - RSI (14) Buy Conditions: - EMA 9 crosses above EMA 21 - RSI > 55 - Spread < 1.5 pips - Only one trade at a time Sell Conditions: - EMA 9 crosses below EMA 21 - RSI < 45 - Spread < 1.5 pips -
In need of an automated bot that strongly detect support and resistance zones where price has a high probability of reacting ,rejecting or reversing. The zones should be built on combibation of of : (a)swing high and swing low.(b)repeated price reaction c)rejection strength (d)break and retest behaviour (e) consolidation origin before implusive move (f) strong displacement candles
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
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
I will like to purchase tradingview strategy with high winning rate, i mean already made, tested and trusted and powerful strategy, i have tried to code my own strategy with lot of freelancers but nothing to me i am just wasting money, i have wasted lot of money already, so i need a high winning rate tradingview strategy, we can discuss price in chat, I will need to see some test result as well
Looking to acquire a good MT5 based EA that works on Gold, forex pairs or BTC. Must be suitable for current market conditions and profitable in backtests. Suitable on 1 Min timeframe to be used on, Must be actively opening many positions throughout the day. Share me the details if this matches something you have or developed. Looking to get this finalised within the weekend
Pakayaku Robot Trading 30 - 200 USD
Revolusi Trading BTCUSD dengan Presisi Fibonacci & Ichimoku Kumo "Memperkenalkan Pakayaku Robot Trading , asisten cerdas yang dirancang khusus untuk menaklukkan pasar emas (XAUUSD) dan Bitcoin (BTCUSD). Menggabungkan algoritma Fibonacci Retracement untuk akurasi titik pantul dan Ichimoku Kumo sebagai filter tren global. Mengapa Memilih Pakayaku? Analisa Multi-Indikator: Menggabungkan Fibonacci, Ichimoku, dan
I’m looking to purchase an existing high-risk Expert Advisor (EA) for MT5. This is NOT a low-risk or conservative system. I am specifically looking for a high-risk, aggressive strategy such as: Martingale Grid trading High-frequency / high-leverage systems Objective: The goal of this EA is simple: Achieve extremely high returns (e.g. 100% in a day) I fully understand and accept the risk of losing the entire capital
READ BEFORE MESSAGING PLEASE Developer Requirements (Strict): - Expert Level Only: This is a professional-grade, robust trading engine. Please do not apply if you are a beginner or intermediate developer. ​ - Asynchronous Proficiency: You must have deep experience with CTrade and handling asynchronous order execution (Requotes, Busy Servers, and Order Integrity Sync). ​ - Proven Track Record: I require a developer
buy condition when blue color appears sell condition when yellow color appears close all buys when there is a sell order close all sells when there is a buy order

Project information

Budget
30 USD
Deadline
to 2 day(s)