Spezifikation

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.

Bewerbungen

1
Entwickler 1
Bewertung
(4)
Projekte
7
57%
Schlichtung
1
100% / 0%
Frist nicht eingehalten
0
Frei
2
Entwickler 2
Bewertung
(3)
Projekte
9
67%
Schlichtung
0
Frist nicht eingehalten
0
Arbeitet
3
Entwickler 3
Bewertung
(9)
Projekte
11
27%
Schlichtung
0
Frist nicht eingehalten
2
18%
Arbeitet
Veröffentlicht: 1 Beispiel
4
Entwickler 4
Bewertung
(1)
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 1 Beispiel
5
Entwickler 5
Bewertung
(179)
Projekte
193
46%
Schlichtung
4
50% / 25%
Frist nicht eingehalten
1
1%
Beschäftigt
6
Entwickler 6
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
7
Entwickler 7
Bewertung
(261)
Projekte
307
76%
Schlichtung
13
77% / 0%
Frist nicht eingehalten
5
2%
Arbeitet
8
Entwickler 8
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
9
Entwickler 9
Bewertung
(83)
Projekte
96
31%
Schlichtung
9
22% / 56%
Frist nicht eingehalten
5
5%
Arbeitet
10
Entwickler 10
Bewertung
(1)
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Arbeitet
11
Entwickler 11
Bewertung
(21)
Projekte
28
36%
Schlichtung
7
14% / 71%
Frist nicht eingehalten
2
7%
Frei
12
Entwickler 12
Bewertung
(1)
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
13
Entwickler 13
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
14
Entwickler 14
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
15
Entwickler 15
Bewertung
(59)
Projekte
92
42%
Schlichtung
4
0% / 100%
Frist nicht eingehalten
3
3%
Arbeitet
16
Entwickler 16
Bewertung
(211)
Projekte
274
21%
Schlichtung
24
54% / 17%
Frist nicht eingehalten
0
Frei
17
Entwickler 17
Bewertung
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 10 Beispiele
18
Entwickler 18
Bewertung
(1)
Projekte
2
50%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 2 Beispiele
19
Entwickler 19
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
20
Entwickler 20
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
21
Entwickler 21
Bewertung
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
22
Entwickler 22
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 2 Beispiele
23
Entwickler 23
Bewertung
(64)
Projekte
144
46%
Schlichtung
21
38% / 24%
Frist nicht eingehalten
32
22%
Frei
24
Entwickler 24
Bewertung
(12)
Projekte
14
29%
Schlichtung
0
Frist nicht eingehalten
0
Frei
25
Entwickler 25
Bewertung
(16)
Projekte
30
40%
Schlichtung
3
33% / 67%
Frist nicht eingehalten
7
23%
Arbeitet
Ähnliche Aufträge
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
Title: Simple background trading bot for my Oanda account (v20 REST API) Overview Hi, I need a simple, lightweight event based standalone trading bot that connects directly to my Oanda account using broker’s standard REST API (V20 account) via VPS The bot just needs to look at group of 5 currency pairs (manually selectable and adjustable) in different 4 baskets, do some basic percentage math every period, and place
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

Projektdetails

Budget
30+ USD
MwSt (23%): 6.9 USD
Insgesamt: 37 USD
Für die Entwickler
27 USD
Ausführungsfristen
bis 5 Tag(e)

Kunde

Veröffentlichte Aufträge5
Anzahl der Schlichtungen0