Техническое задание

Freelance Task — EA Recovery Layer

Hello. I have a ready-made MQL5 EA. The signals, SL/TP and lot calculation should essentially not be touched. I need a recovery system added.

I am not a programmer — below is how the robot should behave.

What stays

Entry only from an EA signal. Stop-loss is not a new signal.

Trailing is already built into my EA — recovery does not implement its own trailing. If trailing is disabled, recovery must not work.

The normal lot remains whatever the EA already calculates (fixed or percentage of the account). Recovery only increases the next lot after a loss.

After a loss

Take the actual closing amount of the trade (profit, commission, swap, fee). This is the debt that needs to be recovered.

The next lot is calculated as follows: divide the debt by the entered number of parts, then add the minimum profit that the trailing normally protects on the normal lot (trailing start minus the distance to the price).

Based on this ratio, increase the lot relative to the normal EA lot.

Example: if the normal lot is 0.01 and the calculation gives approximately 0.04, use 0.04. The lot must be adjusted to the broker’s lot step.

The number of parts is only used to calculate the lot. It does not mean that there must be exactly that many trades.

There are limits: the maximum recovery lot and the maximum debt for which the formula is allowed to increase the lot. If the debt is larger, the lot does not increase further. Recovery is not disabled.

The increased lot is locked. Until the cycle ends, the lot does not decrease after profitable trades.

After a profit during recovery

Remove from the debt everything that this trade actually earned, not the “theoretical part”.

With every profitable recovery position, add another identical minimum trailing profit on the normal lot to the target.

The cycle ends when the recovery profits have covered the initial loss and this minimum profit for every profitable position. Then the normal lot is used again.

Examples. Loss = 5, minimum trailing profit on 0.01 = 0.50, locked lot = 0.04:

·       three times +2.5 → ends after the third;

·       +4 and +3 → ends after the second;

·       one +5.90 → ends immediately.

If there is another loss during the cycle, the debt increases, a new cycle starts, and a new lot is calculated.

Second option

Input: lock the lot during the cycle (default should be enabled) or recalculate the lot after a profit (then it can decrease).

Also: enable/disable recovery, number of parts for lot calculation, maximum lot, maximum debt for the formula, and whether a new loss starts the cycle again.

Panel on the chart

Add three rows to the existing EA panel:

·       Recovery status (disabled / waiting / cycle active and number of calculation steps);

·       Current debt;

·       Next lot.

Increase the background height so that the rows fit. Do not touch the other fields.

Restart

After an MT5 or VPS restart, the debt and locked lot must not be lost.

Do not use files. Store the state in Terminal Global Variables.

If they disappear or are invalid (different account, different magic, different symbol), restore the state after startup from this EA’s trade history.

In the Tester, every run starts from zero, without live cache.

After the work

It compiles. In the Tester: after a loss, the next signal uses a larger lot; after a profit, the lot remains unchanged; the cycle closes as in the examples; the panel shows the debt and next lot; after a terminal restart, the state rema.

Откликнулись

1
Разработчик 1
Оценка
(4)
Проекты
7
57%
Арбитраж
1
100% / 0%
Просрочено
0
Свободен
2
Разработчик 2
Оценка
(4)
Проекты
10
60%
Арбитраж
0
Просрочено
0
Работает
3
Разработчик 3
Оценка
(10)
Проекты
12
33%
Арбитраж
0
Просрочено
2
17%
Работает
Опубликовал: 1 пример
4
Разработчик 4
Оценка
(1)
Проекты
1
0%
Арбитраж
0
Просрочено
0
Свободен
Опубликовал: 4 примера
5
Разработчик 5
Оценка
(186)
Проекты
200
47%
Арбитраж
4
50% / 25%
Просрочено
1
1%
Работает
6
Разработчик 6
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
7
Разработчик 7
Оценка
(265)
Проекты
313
75%
Арбитраж
16
75% / 0%
Просрочено
6
2%
Работает
8
Разработчик 8
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
9
Разработчик 9
Оценка
(83)
Проекты
99
33%
Арбитраж
9
22% / 56%
Просрочено
5
5%
Работает
10
Разработчик 10
Оценка
(2)
Проекты
3
33%
Арбитраж
0
Просрочено
2
67%
Работает
11
Разработчик 11
Оценка
(21)
Проекты
28
36%
Арбитраж
7
14% / 71%
Просрочено
2
7%
Свободен
12
Разработчик 12
Оценка
(1)
Проекты
1
0%
Арбитраж
0
Просрочено
0
Свободен
Опубликовал: 5 примеров
13
Разработчик 13
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
Опубликовал: 1 пример
14
Разработчик 14
Оценка
(1)
Проекты
1
0%
Арбитраж
0
Просрочено
0
Свободен
15
Разработчик 15
Оценка
(60)
Проекты
95
42%
Арбитраж
4
0% / 100%
Просрочено
4
4%
Свободен
16
Разработчик 16
Оценка
(215)
Проекты
282
21%
Арбитраж
28
57% / 14%
Просрочено
0
Работает
17
Разработчик 17
Оценка
Проекты
1
0%
Арбитраж
0
Просрочено
0
Свободен
Опубликовал: 11 примеров
18
Разработчик 18
Оценка
(6)
Проекты
8
63%
Арбитраж
0
Просрочено
1
13%
Работает
Опубликовал: 1 статью, 2 примера
19
Разработчик 19
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
20
Разработчик 20
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
21
Разработчик 21
Оценка
Проекты
1
0%
Арбитраж
0
Просрочено
0
Свободен
22
Разработчик 22
Оценка
(4)
Проекты
6
33%
Арбитраж
0
Просрочено
0
Загружен
Опубликовал: 5 примеров
23
Разработчик 23
Оценка
(64)
Проекты
145
46%
Арбитраж
21
38% / 24%
Просрочено
32
22%
Свободен
24
Разработчик 24
Оценка
(12)
Проекты
14
29%
Арбитраж
0
Просрочено
0
Свободен
25
Разработчик 25
Оценка
(16)
Проекты
30
40%
Арбитраж
3
33% / 67%
Просрочено
7
23%
Работает
26
Разработчик 26
Оценка
(13)
Проекты
20
40%
Арбитраж
1
0% / 100%
Просрочено
1
5%
Свободен
27
Разработчик 27
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
28
Разработчик 28
Оценка
(2)
Проекты
2
50%
Арбитраж
0
Просрочено
0
Работает
29
Разработчик 29
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
30
Разработчик 30
Оценка
(464)
Проекты
491
70%
Арбитраж
6
67% / 0%
Просрочено
2
0%
Свободен
31
Разработчик 31
Оценка
(3)
Проекты
3
0%
Арбитраж
0
Просрочено
0
Свободен
Опубликовал: 3 примера
32
Разработчик 32
Оценка
(10)
Проекты
14
43%
Арбитраж
0
Просрочено
3
21%
Свободен
33
Разработчик 33
Оценка
(31)
Проекты
38
53%
Арбитраж
2
50% / 50%
Просрочено
3
8%
Свободен
34
Разработчик 34
Оценка
(14)
Проекты
21
24%
Арбитраж
0
Просрочено
2
10%
Свободен
Опубликовал: 3 примера
35
Разработчик 35
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
Опубликовал: 1 пример
36
Разработчик 36
Оценка
(1)
Проекты
1
0%
Арбитраж
0
Просрочено
0
Свободен
37
Разработчик 37
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
Опубликовал: 2 примера
38
Разработчик 38
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
39
Разработчик 39
Оценка
(1)
Проекты
1
0%
Арбитраж
0
Просрочено
0
Свободен
40
Разработчик 40
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
41
Разработчик 41
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
42
Разработчик 42
Оценка
(574)
Проекты
945
47%
Арбитраж
309
58% / 27%
Просрочено
125
13%
Свободен
Похожие заказы
I need an already developed EA with proven ability to grow small accounts for day trading. It can trade any specific instrument like gold, EURUSD or more than one instrument. Any strategy is welcomed, including scalping in lower timeframes A test version is required before concluding the deal or being selected. Only those with ready products apply No fake EAs needed
Forex Hunter MT5 30 - 250 USD
ثبت طلبك في مواصفات البوت الثاني كذا: الجودة والأمان أهم من السعر، وما يدخل إلا إذا الفرصة قوية، مع حماية عند الخسائر وانقطاع الاتصال وارتفاع السبريد، وتشغيل مستمر على سيرفر، مع اختبارات إلزامية قبل أي تشغيل حقيقي. بهذه الصيغة يصير يشتغل وأنت مرتاح بالِك، لكنه يوقف تلقائيًا وقت عطلة السوق أو أي خلل. بس أكون واضح معك: ما في بوت يضمن عدم الخسارة، خصوصًا بالمضاربات السريعة، هدفنا نقلل المخاطر ونمنع الخسائر غير المنضبطة
I'm looking for an experienced MQL5 developer to create a Opening Range Breakout EA. The EA should identify the high and low of a configurable trading session and open trades when price breaks out of this range. It should include configurable Stop Loss, Take Profit, fixed lot size, break-even option and trading hours. Full mq5 required
Matosfx 30 USD
Am called martin sselubiri I need a robot for trading forex and stock and I want know how this robot works and how much it costs for me to use it
AI Forex Trading Bot for MT4 and MT5 I need an advanced Forex trading robot (Expert Advisor) that works on both MetaTrader 4 and MetaTrader 5. The robot should automatically analyse the Forex market, identify BUY and SELL opportunities, and execute trades when the trading conditions are met. It should support GBPUSD, EURUSD, USDJPY and GBPJPY. The robot should use EMA, RSI, MACD, price action and trend analysis
Name: SteelEdge Platform: MetaTrader 5 (MQL5) Expert Advisor Instruments: XAUUSD, EURUSD, US30 Timeframe: H1 (inputs to change it) STRATEGY - Trend filter: buy only when price is above the 200 EMA, sell only when below - Entry: price pulls back to the 50 EMA and a bullish (buy) or bearish (sell) engulfing candle closes - Confirmation: RSI(14) above 50 for buys, below 50 for sells - Stop loss: 1.5 x ATR(14) - Take
Aziz Toure 50 - 400 USD
I am an independent trader and entrepreneur based in Côte d’Ivoire. I work in financial markets, analyze trading opportunities, and provide digital financial services. I am also interested in international trade, online business, and developing long-term business activities
SMC Bot Creation 350 - 550 USD
Hello, I am interested in developing a professional MT5 Expert Advisor similar in functionality and technical sophistication to your reference product, Institutional SMC Robot: https://www.mql5.com/en/market/product/187011 I want to develop my own independent EA based on advanced Smart Money Concepts (SMC), with a strong focus on institutional price action, liquidity and market structure. The key functionalities I
Phixfx 30 - 150 USD
Project Brief: Multi-Asset EA/Indicator Optimization, Debugging, and Futures Strategy Refinement ​1. Project Overview & Objective ​I am looking for an experienced algorithmic developer to inspect, debug, optimize, and enhance an existing automated trading system. The system combines custom indicators and execution logic across Forex and Futures markets. ​The primary goals of this project are: ​Debug existing logic
​I am looking for an experienced MQL5 developer to build a fully automated MetaTrader 5 Expert Advisor (EA) optimized primarily for XAUUSD (Gold), featuring a clean Tkinter-style telemetry dashboard control concept or customizable input parameters. ​1. Core Strategy Rules (Full-Body Engulfing) ​Signal Identification: The EA must scan completed candles across multiple selectable timeframes (e.g., 1M, 5M, 15M, 30M, 1H)

Информация о проекте

Бюджет
30+ USD
Сроки выполнения
до 5 дн.