Add Cumulative Drawdown From Peak Protection to Existing MT5 EA

Şartname

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.


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(62)
Projeler
90
29%
Arabuluculuk
24
13% / 58%
Süresi dolmuş
7
8%
Çalışıyor
2
Geliştirici 2
Derecelendirme
(107)
Projeler
175
25%
Arabuluculuk
23
13% / 78%
Süresi dolmuş
16
9%
Serbest
3
Geliştirici 3
Derecelendirme
(12)
Projeler
18
17%
Arabuluculuk
3
33% / 67%
Süresi dolmuş
3
17%
Serbest
4
Geliştirici 4
Derecelendirme
(158)
Projeler
201
60%
Arabuluculuk
10
80% / 0%
Süresi dolmuş
0
Serbest
Yayınlandı: 1 kod
5
Geliştirici 5
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
6
Geliştirici 6
Derecelendirme
(8)
Projeler
8
0%
Arabuluculuk
2
50% / 0%
Süresi dolmuş
1
13%
Çalışıyor
7
Geliştirici 7
Derecelendirme
(317)
Projeler
564
35%
Arabuluculuk
81
31% / 44%
Süresi dolmuş
204
36%
Serbest
8
Geliştirici 8
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
9
Geliştirici 9
Derecelendirme
(166)
Projeler
176
45%
Arabuluculuk
3
33% / 33%
Süresi dolmuş
1
1%
Çalışıyor
10
Geliştirici 10
Derecelendirme
(33)
Projeler
36
33%
Arabuluculuk
5
0% / 80%
Süresi dolmuş
0
Çalışıyor
Yayınlandı: 2 kod
11
Geliştirici 11
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
12
Geliştirici 12
Derecelendirme
(244)
Projeler
288
76%
Arabuluculuk
13
77% / 0%
Süresi dolmuş
4
1%
Serbest
13
Geliştirici 13
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
14
Geliştirici 14
Derecelendirme
(26)
Projeler
32
34%
Arabuluculuk
0
Süresi dolmuş
2
6%
Serbest
15
Geliştirici 15
Derecelendirme
(89)
Projeler
253
78%
Arabuluculuk
9
22% / 56%
Süresi dolmuş
36
14%
Çalışıyor
Yayınlandı: 3 makale, 26 kod
16
Geliştirici 16
Derecelendirme
(12)
Projeler
16
25%
Arabuluculuk
1
0% / 0%
Süresi dolmuş
4
25%
Çalışıyor
17
Geliştirici 17
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
18
Geliştirici 18
Derecelendirme
(11)
Projeler
20
40%
Arabuluculuk
8
0% / 50%
Süresi dolmuş
3
15%
Çalışıyor
19
Geliştirici 19
Derecelendirme
(17)
Projeler
21
14%
Arabuluculuk
8
38% / 38%
Süresi dolmuş
3
14%
Yüklendi
20
Geliştirici 20
Derecelendirme
(47)
Projeler
59
59%
Arabuluculuk
4
75% / 25%
Süresi dolmuş
1
2%
Yüklendi
21
Geliştirici 21
Derecelendirme
(14)
Projeler
20
25%
Arabuluculuk
0
Süresi dolmuş
2
10%
Serbest
Yayınlandı: 3 kod
22
Geliştirici 22
Derecelendirme
(2)
Projeler
4
50%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
23
Geliştirici 23
Derecelendirme
(48)
Projeler
57
35%
Arabuluculuk
15
27% / 60%
Süresi dolmuş
1
2%
Serbest
24
Geliştirici 24
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
25
Geliştirici 25
Derecelendirme
(169)
Projeler
202
48%
Arabuluculuk
5
20% / 60%
Süresi dolmuş
2
1%
Serbest
26
Geliştirici 26
Derecelendirme
(22)
Projeler
29
45%
Arabuluculuk
4
50% / 50%
Süresi dolmuş
1
3%
Yüklendi
27
Geliştirici 27
Derecelendirme
(279)
Projeler
377
72%
Arabuluculuk
19
32% / 47%
Süresi dolmuş
15
4%
Serbest
Yayınlandı: 15 kod
28
Geliştirici 28
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
29
Geliştirici 29
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Benzer siparişler
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

Proje bilgisi

Bütçe
30+ USD
Son teslim tarihi
from 1 to 2 gün

Müşteri

Verilmiş siparişler1
Arabuluculuk sayısı0