MT5 EA to close all trades in profit

MQL5 Experts

Tâche terminée

Temps d'exécution 43 minutes
Commentaires de l'employé
Всё отлично! Чёткое задание!
Commentaires du client
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.

Spécifications

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.


Répondu

1
Développeur 1
Évaluation
(139)
Projets
181
24%
Arbitrage
23
22% / 39%
En retard
13
7%
Gratuit
2
Développeur 2
Évaluation
(621)
Projets
698
42%
Arbitrage
2
100% / 0%
En retard
1
0%
Gratuit
Publié : 9 codes
3
Développeur 3
Évaluation
(132)
Projets
178
39%
Arbitrage
4
25% / 50%
En retard
14
8%
Gratuit
4
Développeur 4
Évaluation
(47)
Projets
61
54%
Arbitrage
7
86% / 0%
En retard
2
3%
Travail
5
Développeur 5
Évaluation
(145)
Projets
169
50%
Arbitrage
22
14% / 55%
En retard
22
13%
Gratuit
6
Développeur 6
Évaluation
(164)
Projets
259
61%
Arbitrage
4
50% / 25%
En retard
10
4%
Travail
7
Développeur 7
Évaluation
(31)
Projets
41
20%
Arbitrage
9
11% / 89%
En retard
5
12%
Gratuit
8
Développeur 8
Évaluation
(15)
Projets
23
9%
Arbitrage
7
29% / 57%
En retard
2
9%
Gratuit
9
Développeur 9
Évaluation
(15)
Projets
19
42%
Arbitrage
1
0% / 100%
En retard
3
16%
Gratuit
Publié : 4 codes
10
Développeur 10
Évaluation
(3)
Projets
3
0%
Arbitrage
2
0% / 100%
En retard
0
Gratuit
11
Développeur 11
Évaluation
(22)
Projets
18
6%
Arbitrage
31
3% / 65%
En retard
5
28%
Gratuit
12
Développeur 12
Évaluation
(568)
Projets
641
41%
Arbitrage
25
48% / 36%
En retard
46
7%
Travail
13
Développeur 13
Évaluation
(137)
Projets
167
35%
Arbitrage
11
91% / 0%
En retard
0
Gratuit
14
Développeur 14
Évaluation
(96)
Projets
143
76%
Arbitrage
0
En retard
2
1%
Gratuit
15
Développeur 15
Évaluation
(361)
Projets
629
72%
Arbitrage
14
43% / 7%
En retard
28
4%
Gratuit
Publié : 9 codes
Commandes similaires
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
EA for Gold 50+ USD
need a Gold robot? check out this EA for Gold. It specialises in bringing in big amounts of profit and is very consistent. It's very trustworthy and it trades the SMC strategy.Enjoy
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
I develop and customize automated trading systems for MetaTrader 5 using MQL5. My experience includes developing EAs based on price action, market structure, Moving Averages, ADX, Smart Money Concepts, supply and demand zones, Break of Structure, Fair Value Gaps, trailing stops, risk management, and multi-timeframe analysis . I can also modify existing MQL5 source code, fix errors, add new trading features, and help
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
Торговый робот XAUUSD AI/ML — MT5 + Python + MQL5 Ищу опытного разработчика с глубокими знаниями в следующих областях: MQL5 / MetaTrader 5 Python Машинное обучение / Искусственный интеллект Алгоритмическая торговля Проект Я хочу разработать торговую систему на основе ИИ/машинного обучения, предназначенную исключительно для XAUUSD (золото) . Архитектура: Данные рынка XAUUSD → Модель Python/ML → ПОКУПКА / ПРОДАЖА /
The EA needs to be upgraded according to the strategie built in and first the programer must specify the problems and how can correct and provide the video on how the bot works on different assets after correction
//———————————————————————————————————————————————————————————————————— 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 () {

Informations sur le projet

Budget
30 USD
Délais
à 2 jour(s)