Add Cumulative Drawdown From Peak Protection to Existing MT5 EA

Spezifikation

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.


Bewerbungen

1
Entwickler 1
Bewertung
(62)
Projekte
90
29%
Schlichtung
24
13% / 58%
Frist nicht eingehalten
7
8%
Arbeitet
2
Entwickler 2
Bewertung
(107)
Projekte
175
25%
Schlichtung
23
13% / 78%
Frist nicht eingehalten
16
9%
Frei
3
Entwickler 3
Bewertung
(12)
Projekte
18
17%
Schlichtung
3
33% / 67%
Frist nicht eingehalten
3
17%
Frei
4
Entwickler 4
Bewertung
(158)
Projekte
201
60%
Schlichtung
10
80% / 0%
Frist nicht eingehalten
0
Frei
Veröffentlicht: 1 Beispiel
5
Entwickler 5
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Arbeitet
6
Entwickler 6
Bewertung
(8)
Projekte
8
0%
Schlichtung
2
50% / 0%
Frist nicht eingehalten
1
13%
Arbeitet
7
Entwickler 7
Bewertung
(317)
Projekte
564
35%
Schlichtung
81
31% / 44%
Frist nicht eingehalten
204
36%
Frei
8
Entwickler 8
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
9
Entwickler 9
Bewertung
(166)
Projekte
176
45%
Schlichtung
3
33% / 33%
Frist nicht eingehalten
1
1%
Arbeitet
10
Entwickler 10
Bewertung
(33)
Projekte
36
33%
Schlichtung
5
0% / 80%
Frist nicht eingehalten
0
Arbeitet
Veröffentlicht: 2 Beispiele
11
Entwickler 11
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
12
Entwickler 12
Bewertung
(244)
Projekte
288
76%
Schlichtung
13
77% / 0%
Frist nicht eingehalten
4
1%
Frei
13
Entwickler 13
Bewertung
(1)
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
14
Entwickler 14
Bewertung
(26)
Projekte
32
34%
Schlichtung
0
Frist nicht eingehalten
2
6%
Frei
15
Entwickler 15
Bewertung
(89)
Projekte
253
78%
Schlichtung
9
22% / 56%
Frist nicht eingehalten
36
14%
Arbeitet
Veröffentlicht: 3 Artikel, 26 Beispiele
16
Entwickler 16
Bewertung
(12)
Projekte
16
25%
Schlichtung
1
0% / 0%
Frist nicht eingehalten
4
25%
Arbeitet
17
Entwickler 17
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
18
Entwickler 18
Bewertung
(11)
Projekte
20
40%
Schlichtung
8
0% / 50%
Frist nicht eingehalten
3
15%
Arbeitet
19
Entwickler 19
Bewertung
(17)
Projekte
21
14%
Schlichtung
8
38% / 38%
Frist nicht eingehalten
3
14%
Beschäftigt
20
Entwickler 20
Bewertung
(47)
Projekte
59
59%
Schlichtung
4
75% / 25%
Frist nicht eingehalten
1
2%
Beschäftigt
21
Entwickler 21
Bewertung
(14)
Projekte
20
25%
Schlichtung
0
Frist nicht eingehalten
2
10%
Frei
Veröffentlicht: 3 Beispiele
22
Entwickler 22
Bewertung
(2)
Projekte
4
50%
Schlichtung
0
Frist nicht eingehalten
0
Arbeitet
23
Entwickler 23
Bewertung
(48)
Projekte
57
35%
Schlichtung
15
27% / 60%
Frist nicht eingehalten
1
2%
Frei
24
Entwickler 24
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
25
Entwickler 25
Bewertung
(169)
Projekte
202
48%
Schlichtung
5
20% / 60%
Frist nicht eingehalten
2
1%
Frei
26
Entwickler 26
Bewertung
(22)
Projekte
29
45%
Schlichtung
4
50% / 50%
Frist nicht eingehalten
1
3%
Beschäftigt
27
Entwickler 27
Bewertung
(279)
Projekte
377
72%
Schlichtung
19
32% / 47%
Frist nicht eingehalten
15
4%
Frei
Veröffentlicht: 15 Beispiele
28
Entwickler 28
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
29
Entwickler 29
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Ähnliche Aufträge
Hello everyone, I have developed a Bollinger Bands strategy. It opens around 40–50 trades per day. The strategy is already profitable, but the entries need better filtering because a few bad trades can remove most of the profit. This code was not generated by AI. I wrote it myself. The code is clean, well organized, easy to read, and relatively short, so I believe you can understand it quickly. Please read all rules
Two trading view indicator merge and specific area show entry and SL/TP....DASHBOARD SHOW 1YEAR. UMBER OF ORDER AND WIN/LOSS PROFIT% etc.The trading view indicator name will be under me............and I will tell you condition for A+ setup...and normal....based on that condition signal will create
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
I need an MT5 Indicator that DOES NOT open trades automatically. Its purpose is to analyze the market and send me a notification whenever all the conditions of my strategy are met. INDICATORS USED - RSI (14) - SMA (100) - Volume - H4 Support Detection CONDITIONS 1. RSI on M15 - RSI (14) must be equal to or below 30. 2. RSI on H1 - RSI (14) must be equal to or below 35. 3. SMA 100 - Use a Simple Moving Average (SMA)
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
i am looking to upgrade my trading telegram bot and add live data to it and also make it linked to a dashboard where i can trace the users who register in my bot and pay and make them go in my private channel and manages the expiry date of each user
Title: MT4 One Click Trader EA (Custom Development) I am looking for an experienced MQL4 developer to build a custom One Click Trader Expert Advisor for MetaTrader 4. The objective is a fast, reliable, execution-focused trading panel with minimal visual clutter and robust operation on both standard and offline charts. Requirements Trade Panel The EA must provide a simple trading panel containing: Buy button Sell
Read signal and enter trade and close trade at good profits and open trade again. Either bullish or bearish signals at 0.1 on XAUUSD. Maximum trade a day should be 4-5 times with good opens and close signals. Looking foward to a long cooperation and also a honest and genuine person
AlphaGreen 150 - 200 USD
Hello, I need a professional MT5 Expert Advisor (EA) developed for a custom indicator-based strategy. Strategy Logic: Determine the trend direction: Uptrend = Buy opportunities only. Downtrend = Sell opportunities only. Entry Conditions: The indicator has 4 lines: 2 Green lines, 1 Red line, and 1 Blue line. Open a Buy trade when both Green lines move inside/between the Red and Blue lines during an uptrend. Open a

Projektdetails

Budget
30+ USD
Ausführungsfristen
von 1 bis 2 Tag(e)

Kunde

Veröffentlichte Aufträge1
Anzahl der Schlichtungen0