Termos de Referência

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.

Respondido

1
Desenvolvedor 1
Classificação
(4)
Projetos
7
57%
Arbitragem
1
100% / 0%
Expirado
0
Livre
2
Desenvolvedor 2
Classificação
(3)
Projetos
9
67%
Arbitragem
0
Expirado
0
Trabalhando
3
Desenvolvedor 3
Classificação
(9)
Projetos
11
27%
Arbitragem
0
Expirado
2
18%
Trabalhando
Publicou: 1 código
4
Desenvolvedor 4
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 1 código
5
Desenvolvedor 5
Classificação
(180)
Projetos
194
46%
Arbitragem
4
50% / 25%
Expirado
1
1%
Carregado
6
Desenvolvedor 6
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
7
Desenvolvedor 7
Classificação
(261)
Projetos
307
76%
Arbitragem
13
77% / 0%
Expirado
5
2%
Trabalhando
8
Desenvolvedor 8
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
9
Desenvolvedor 9
Classificação
(83)
Projetos
96
31%
Arbitragem
9
22% / 56%
Expirado
5
5%
Trabalhando
10
Desenvolvedor 10
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Trabalhando
11
Desenvolvedor 11
Classificação
(21)
Projetos
28
36%
Arbitragem
7
14% / 71%
Expirado
2
7%
Livre
12
Desenvolvedor 12
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
13
Desenvolvedor 13
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
14
Desenvolvedor 14
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
15
Desenvolvedor 15
Classificação
(59)
Projetos
92
42%
Arbitragem
4
0% / 100%
Expirado
3
3%
Trabalhando
16
Desenvolvedor 16
Classificação
(211)
Projetos
274
21%
Arbitragem
24
54% / 17%
Expirado
0
Livre
17
Desenvolvedor 17
Classificação
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 10 códigos
18
Desenvolvedor 18
Classificação
(1)
Projetos
2
50%
Arbitragem
0
Expirado
0
Livre
Publicou: 2 códigos
19
Desenvolvedor 19
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
20
Desenvolvedor 20
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
21
Desenvolvedor 21
Classificação
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
22
Desenvolvedor 22
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Trabalhando
Publicou: 2 códigos
23
Desenvolvedor 23
Classificação
(64)
Projetos
144
46%
Arbitragem
21
38% / 24%
Expirado
32
22%
Livre
24
Desenvolvedor 24
Classificação
(12)
Projetos
14
29%
Arbitragem
0
Expirado
0
Livre
25
Desenvolvedor 25
Classificação
(16)
Projetos
30
40%
Arbitragem
3
33% / 67%
Expirado
7
23%
Trabalhando
26
Desenvolvedor 26
Classificação
(13)
Projetos
20
40%
Arbitragem
1
0% / 100%
Expirado
1
5%
Livre
27
Desenvolvedor 27
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
28
Desenvolvedor 28
Classificação
(2)
Projetos
2
50%
Arbitragem
0
Expirado
0
Livre
29
Desenvolvedor 29
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
30
Desenvolvedor 30
Classificação
(461)
Projetos
488
70%
Arbitragem
6
67% / 0%
Expirado
2
0%
Trabalhando
31
Desenvolvedor 31
Classificação
(3)
Projetos
3
0%
Arbitragem
0
Expirado
0
Livre
32
Desenvolvedor 32
Classificação
(10)
Projetos
14
43%
Arbitragem
0
Expirado
3
21%
Livre
Pedidos semelhantes
Should be as it but no alarms, also we need to add a deep search so he can see all the preves candles and a memory function so its not slowing down the indicator. for higher time frames daily 4h 1h around 365 days and for lower time frames we do up to 20k bars but both flexible so i can change it later. the memory is important so the indicator is not always recalculating everything when a new candle shows especially
Hi, I need an experienced NinjaTrader 8/NinjaScript developer to finish or rebuild an automated futures strategy, ideally by the end of this week. I already have the complete TradingView Pine Script reference strategy, an existing ~2,000-line NinjaScript implementation, Playback logs, and known historical benchmark trades. MOST IMPORTANT REQUIREMENT: TRADINGVIEW ↔ NINJATRADER PARITY. The Pine Script is the reference
PHANTOM PROTOCOL V1 35 - 150 USD
PHANTOM PROTOCOL V1 – MT5 EXPERT ADVISOR SPECIFICATION Develop a professional MetaTrader 5 (MT5) Expert Advisor named “PHANTOM PROTOCOL V1”. PRIMARY MARKET: - XAUUSD (Gold) - Designed primarily for M15 and H1 timeframes. - The EA must work with both 3-digit and 2-digit gold pricing where applicable. TRADING LOGIC: Use pure price-action and market-structure analysis rather than relying on a single indicator. The EA
I need an experienced MQL5 developer to build a prototype MT5 Expert Advisor called RiskLock. The software should enforce user-defined trading risk rules before trades are executed. It should support risk percentage or fixed monetary risk, calculate position size using account equity, entry price, stop loss, tick value and contract specifications, block or reduce oversized trades, and include daily loss limits
Project Overview I have an existing MT5 Expert Advisor (EA) written in MQL5. The source code ( .mq5 ) will be provided. The underlying strategy is a trend-following system that performs well during trending market conditions, but requires professional quantitative research to improve its ability to identify and avoid highly sideways/range-bound market conditions. The objective of this project is not to build a new EA
Most of the expert is already coded . Create a panel to show the Ratio for the Range . Trigger is based on ratio . Show Distribution / project starts after we clear Distribution
Gold hunter v5 30+ USD
*TITLE:* 5 Trades EA - EMA20/50 + RSI - Safe for Small Account *SPECIFICATION:* I need MT5 EA - Source Code .mq5 *Logic:* Buy: EMA20 > EMA50 and RSI(14) 45-70 Sell: EMA20 < EMA50 and RSI(14) 30-55 Timeframe M15, Symbol XAUUSD and all Forex *Trade Management:* Max 5 trades at same time. Fixed lot 0.01. No martingale. No lot increase. Distance between trades 150 points. Do not open all 5 at same price. Max 5 total
I need an Expert Advisor (EA) developed for MetaTrader 5 (MT5) tailored for trading on Exness accounts. Account & Server Details: Trading Platform: MetaTrader 5 (MT5) Broker: Exness Execution Type: Market / Pending Orders Account Type: [Specify: Standard / Pro / Raw Spread / Zero] Target Instruments: [Specify pairs, e.g., XAUUSD, EURUSD, BTCUSD] Strategy Requirements: Entry Rules: [Insert your buy/sell entry
Account size 50$ to 100$ or 5000USC to 10000USC ( Account $ Size may not matter ) Max Leverage 1000-2000 Min Lot 0.01 [ if averaging possible ] Averaging + Shift TP Faster Required if Trend Direction is Clear Account Protection Maxx Profit Max Loss Key Based Activation News Filter Need Expert to handle this to avoid false entry [ Developer can suggest extra additional filters inputs here ] as i mentioned I have no
i need some tradingview strategy that i want to use as a tester, i have something that i am working on currently and i need someone that can provide me with tradingview strategies that doesn't have a win rate, the one with 1:1 RR it need to have low win rate like 10% or 5% profitability, i am not paying $30 for,i dont have up to that for this cause i only want to use it as a test, if anyone have any to send me please

Informações sobre o projeto

Orçamento
30+ USD
IVA (23%): 6.9 USD
Total: 37 USD
Desenvolvedor
27 USD
Prazo
para 5 dias

Cliente

Pedidos postados5
Número de arbitragens0