Add Cumulative Drawdown From Peak Protection to Existing MT5 EA

Spécifications

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.


Répondu

1
Développeur 1
Évaluation
(62)
Projets
90
29%
Arbitrage
24
13% / 58%
En retard
7
8%
Travail
2
Développeur 2
Évaluation
(107)
Projets
175
25%
Arbitrage
23
13% / 78%
En retard
16
9%
Gratuit
3
Développeur 3
Évaluation
(12)
Projets
18
17%
Arbitrage
3
33% / 67%
En retard
3
17%
Gratuit
4
Développeur 4
Évaluation
(158)
Projets
201
60%
Arbitrage
10
80% / 0%
En retard
0
Gratuit
Publié : 1 code
5
Développeur 5
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Travail
6
Développeur 6
Évaluation
(8)
Projets
8
0%
Arbitrage
2
50% / 0%
En retard
1
13%
Travail
7
Développeur 7
Évaluation
(317)
Projets
564
35%
Arbitrage
81
31% / 44%
En retard
204
36%
Gratuit
8
Développeur 8
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
9
Développeur 9
Évaluation
(166)
Projets
176
45%
Arbitrage
3
33% / 33%
En retard
1
1%
Travail
10
Développeur 10
Évaluation
(33)
Projets
36
33%
Arbitrage
5
0% / 80%
En retard
0
Travail
Publié : 2 codes
11
Développeur 11
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
12
Développeur 12
Évaluation
(244)
Projets
288
76%
Arbitrage
13
77% / 0%
En retard
4
1%
Gratuit
13
Développeur 13
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
14
Développeur 14
Évaluation
(26)
Projets
32
34%
Arbitrage
0
En retard
2
6%
Gratuit
15
Développeur 15
Évaluation
(89)
Projets
253
78%
Arbitrage
9
22% / 56%
En retard
36
14%
Travail
Publié : 3 articles, 26 codes
16
Développeur 16
Évaluation
(12)
Projets
16
25%
Arbitrage
1
0% / 0%
En retard
4
25%
Travail
17
Développeur 17
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
18
Développeur 18
Évaluation
(11)
Projets
20
40%
Arbitrage
8
0% / 50%
En retard
3
15%
Travail
19
Développeur 19
Évaluation
(17)
Projets
21
14%
Arbitrage
8
38% / 38%
En retard
3
14%
Chargé
20
Développeur 20
Évaluation
(47)
Projets
59
59%
Arbitrage
4
75% / 25%
En retard
1
2%
Chargé
21
Développeur 21
Évaluation
(14)
Projets
20
25%
Arbitrage
0
En retard
2
10%
Gratuit
Publié : 3 codes
22
Développeur 22
Évaluation
(2)
Projets
4
50%
Arbitrage
0
En retard
0
Travail
23
Développeur 23
Évaluation
(48)
Projets
57
35%
Arbitrage
15
27% / 60%
En retard
1
2%
Gratuit
24
Développeur 24
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
25
Développeur 25
Évaluation
(169)
Projets
202
48%
Arbitrage
5
20% / 60%
En retard
2
1%
Gratuit
26
Développeur 26
Évaluation
(22)
Projets
29
45%
Arbitrage
4
50% / 50%
En retard
1
3%
Chargé
27
Développeur 27
Évaluation
(279)
Projets
377
72%
Arbitrage
19
32% / 47%
En retard
15
4%
Gratuit
Publié : 15 codes
28
Développeur 28
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
29
Développeur 29
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Commandes similaires
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

Informations sur le projet

Budget
30+ USD
Délais
de 1 à 2 jour(s)

Client

Commandes passées1
Nombre d'arbitrages0