Add Cumulative Drawdown From Peak Protection to Existing MT5 EA

Specifiche

Hello,

I have an existing MT5 Expert Advisor for XAUUSD. I need one specific protection feature added only.

Task:
Add a modular ON/OFF “Cumulative Drawdown From Peak” protection to my current EA.

Important:
Do not change the trading strategy.
Do not change entry logic.
Do not change exit logic.
Do not change EMA, ADX, session filter, Sell Hour Filter, lot sizing, SL/TP, BreakEven, or Trailing settings.
This job is only for adding the cumulative drawdown protection.

Required Inputs:

  1. UseCumulativeDDProtection = true/false

  2. CumulativeDD_MaxPercent = configurable percentage

  3. CumulativeDD_Action = stop new entries only / close all bot positions and stop

  4. ResetPeakMode = never reset / daily reset / manual reset if possible

Required Logic:

  1. Track the highest account equity peak since the EA started or since reset.

  2. Calculate current drawdown from that peak.

  3. If drawdown from peak reaches the configured limit, the EA must block new trades.

  4. Optional setting: close all bot-managed positions when the limit is reached.

  5. The protection must affect only this EA’s trades if possible, using Magic Number.

  6. The protection must be safe after MT5 restart. If possible, store/recover the equity peak using Global Variables or another reliable method.

Required Logs:
The EA must print clear logs such as:

  • CUM_DD_PEAK_UPDATED

  • CUM_DD_CURRENT

  • CUM_DD_LIMIT_HIT

  • CUM_DD_NEW_ENTRIES_BLOCKED

  • CUM_DD_POSITIONS_CLOSED

Deliverables:

  1. Updated MQ5 file with a new version name:
    EA_Trend_Advanced_v2_70_CumulativeDD_TEST.mq5

  2. Updated MQH file only if necessary.

  3. No unnecessary code rewrite.

  4. A short explanation of every block of code changed.

  5. Screenshot or confirmation that the EA compiles with 0 errors and 0 warnings.

  6. The original v2.69 logic must remain unchanged except for this new protection feature.

I will provide the current EA files after accepting the developer.


Con risposta

1
Sviluppatore 1
Valutazioni
(62)
Progetti
90
29%
Arbitraggio
24
13% / 58%
In ritardo
7
8%
In elaborazione
2
Sviluppatore 2
Valutazioni
(107)
Progetti
175
25%
Arbitraggio
23
13% / 78%
In ritardo
16
9%
Gratuito
3
Sviluppatore 3
Valutazioni
(12)
Progetti
18
17%
Arbitraggio
3
33% / 67%
In ritardo
3
17%
Gratuito
4
Sviluppatore 4
Valutazioni
(158)
Progetti
201
60%
Arbitraggio
10
80% / 0%
In ritardo
0
Gratuito
Pubblicati: 1 codice
5
Sviluppatore 5
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
In elaborazione
6
Sviluppatore 6
Valutazioni
(8)
Progetti
8
0%
Arbitraggio
2
50% / 0%
In ritardo
1
13%
In elaborazione
7
Sviluppatore 7
Valutazioni
(317)
Progetti
564
35%
Arbitraggio
81
31% / 44%
In ritardo
204
36%
Gratuito
8
Sviluppatore 8
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
9
Sviluppatore 9
Valutazioni
(166)
Progetti
176
45%
Arbitraggio
3
33% / 33%
In ritardo
1
1%
In elaborazione
10
Sviluppatore 10
Valutazioni
(33)
Progetti
36
33%
Arbitraggio
5
0% / 80%
In ritardo
0
In elaborazione
Pubblicati: 2 codici
11
Sviluppatore 11
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
12
Sviluppatore 12
Valutazioni
(244)
Progetti
288
76%
Arbitraggio
13
77% / 0%
In ritardo
4
1%
Gratuito
13
Sviluppatore 13
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
0
In ritardo
0
Gratuito
14
Sviluppatore 14
Valutazioni
(26)
Progetti
32
34%
Arbitraggio
0
In ritardo
2
6%
Gratuito
15
Sviluppatore 15
Valutazioni
(89)
Progetti
253
78%
Arbitraggio
9
22% / 56%
In ritardo
36
14%
In elaborazione
Pubblicati: 3 articoli, 26 codici
16
Sviluppatore 16
Valutazioni
(12)
Progetti
16
25%
Arbitraggio
1
0% / 0%
In ritardo
4
25%
In elaborazione
17
Sviluppatore 17
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
18
Sviluppatore 18
Valutazioni
(11)
Progetti
20
40%
Arbitraggio
8
0% / 50%
In ritardo
3
15%
In elaborazione
19
Sviluppatore 19
Valutazioni
(17)
Progetti
21
14%
Arbitraggio
8
38% / 38%
In ritardo
3
14%
Caricato
20
Sviluppatore 20
Valutazioni
(47)
Progetti
59
59%
Arbitraggio
4
75% / 25%
In ritardo
1
2%
Caricato
21
Sviluppatore 21
Valutazioni
(14)
Progetti
20
25%
Arbitraggio
0
In ritardo
2
10%
Gratuito
Pubblicati: 3 codici
22
Sviluppatore 22
Valutazioni
(2)
Progetti
4
50%
Arbitraggio
0
In ritardo
0
In elaborazione
23
Sviluppatore 23
Valutazioni
(48)
Progetti
57
35%
Arbitraggio
15
27% / 60%
In ritardo
1
2%
Gratuito
24
Sviluppatore 24
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
25
Sviluppatore 25
Valutazioni
(169)
Progetti
202
48%
Arbitraggio
5
20% / 60%
In ritardo
2
1%
Gratuito
26
Sviluppatore 26
Valutazioni
(22)
Progetti
29
45%
Arbitraggio
4
50% / 50%
In ritardo
1
3%
Caricato
27
Sviluppatore 27
Valutazioni
(279)
Progetti
377
72%
Arbitraggio
19
32% / 47%
In ritardo
15
4%
Gratuito
Pubblicati: 15 codici
28
Sviluppatore 28
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
29
Sviluppatore 29
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
Ordini simili
I require a custom EA and an accompanying custom indicator built in MQL5 for Meta Trader 4/5. The EA must be fully automated (Algo Trading); Telegram-Signal-Linked and named 'AMK Fx'
Use the H4 timeframe to determine the main trend direction. Identify valid order blocks on the H1 timeframe. Identify liquidity zones and liquidity sweeps. Wait for M15 confirmation before opening a trade. Only take buy trades in bullish market conditions and sell trades in bearish market conditions. Risk a fixed percentage of account balance per trade (user adjustable). Automatically calculate lot size based on
MC Trader's 30+ USD
If Buy: it must Buy when a conformation is done Bye the candle that would be a bullish engolfing candle or after liqudity swip or when sellers has stepped down the market and the market regains energy and trand upwards, it's stop loss must be below the Buy position and it's take profit must be at the top of all candles
Hello, I'm looking for an expert who can help me acquire a secure, easy-to-use bot with Turkish language support for automated buying and selling in Forex, commodities, and cryptocurrencies, and who can also teach me how to set it up and use it
I need a new strategy with and edge for BTCUSD, optionally build an simple expert advisor for backtesting demonstration , i can build it myself if necessary, i only look for an effective strategy with an edge. Thanks
Title Professional AI Automation Trading Bot for Forex & Crypto Solution Language Python (preferred) or MQL5 depending on integration requirements. Categories Expert Advisor (EA) for MetaTrader 5 Automated trading strategies AI/ML-based signal generation Risk management automation Required Skills Strong knowledge of MQL5/Python Experience with MetaTrader API integration Machine learning model deployment
Description: I am looking for an experienced MQL5 developer to build a fully automated Expert Advisor (EA) for MT5 tailored for Prop Firm challenges and funded accounts. I need a robust, plug-and-play solution with rigorous risk controls. Key Requirements: Platform: MT5 Trading Logic: I am looking for a reliable strategy based either on a Breakout Strategy (e.g., London session breakout) or a Mean Reversion Strategy
The striker robot 30 - 2000 USD
I would like a trend and pullback strategy for the robot timeframe:15 minutes(m15) or 1 hour(h1) indicators:50 EMA (Exponential Moving Average)/200 EMA/RSI (14) BUY SET UP 1.Confirm The Trend .50 EMA must be above 200 EMA .Price must be above both EMAs 2.Wait for a pullback .Do not buy when the price shoots up. .Wait for the price to come back near the 50 EMA 3.Confirm entry .ENTER BUY WHEN: .A bullish candlestick
### ** Main EA File** - `InstitutionalTrendPullbackScalper.mq5` **Core Features Implemented:** **Multi-Timeframe Analysis** - M15 trend filter (EMA20 > EMA50 for uptrends) - M5 entry signals with 5-condition confirmation - Independent indicator sets for both symbols **Advanced Entry Logic** - RSI reversal detection (crosses thresholds) - Price pullback zone validation - Bullish/bearish candle close confirmation -
I need an Ai trading bot for Binance and BTC on MT5 that also uses order flow data. It should also make use of TSI- Temporal indicator sampling and also it should make use of fundamental analysis in the process of signal generation

Informazioni sul progetto

Budget
30+ USD
Scadenze
da 1 a 2 giorno(i)

Cliente

Ordini effettuati1
Numero di arbitraggi0