指定

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 code
4
開発者 4
評価
(1)
プロジェクト
1
0%
仲裁
0
期限切れ
0
暇
パブリッシュした人: 4 codes
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 codes
13
開発者 13
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
暇
パブリッシュした人: 1 code
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 codes
18
開発者 18
評価
(6)
プロジェクト
8
63%
仲裁
0
期限切れ
1
13%
仕事中
パブリッシュした人: 1 article, 2 codes
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 codes
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 codes
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 codes
35
開発者 35
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
暇
パブリッシュした人: 1 code
36
開発者 36
評価
(1)
プロジェクト
1
0%
仲裁
0
期限切れ
0
暇
37
開発者 37
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
暇
パブリッシュした人: 2 codes
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 日