Add Cumulative Drawdown From Peak Protection to Existing MT5 EA

指定

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.


応答済み

1
開発者 1
評価
(62)
プロジェクト
90
29%
仲裁
24
13% / 58%
期限切れ
7
8%
仕事中
2
開発者 2
評価
(107)
プロジェクト
175
25%
仲裁
23
13% / 78%
期限切れ
16
9%
3
開発者 3
評価
(12)
プロジェクト
18
17%
仲裁
3
33% / 67%
期限切れ
3
17%
4
開発者 4
評価
(158)
プロジェクト
201
60%
仲裁
10
80% / 0%
期限切れ
0
パブリッシュした人: 1 code
5
開発者 5
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
仕事中
6
開発者 6
評価
(8)
プロジェクト
8
0%
仲裁
2
50% / 0%
期限切れ
1
13%
仕事中
7
開発者 7
評価
(317)
プロジェクト
564
35%
仲裁
81
31% / 44%
期限切れ
204
36%
8
開発者 8
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
9
開発者 9
評価
(166)
プロジェクト
176
45%
仲裁
3
33% / 33%
期限切れ
1
1%
仕事中
10
開発者 10
評価
(33)
プロジェクト
36
33%
仲裁
5
0% / 80%
期限切れ
0
仕事中
パブリッシュした人: 2 codes
11
開発者 11
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
12
開発者 12
評価
(244)
プロジェクト
288
76%
仲裁
13
77% / 0%
期限切れ
4
1%
13
開発者 13
評価
(1)
プロジェクト
1
0%
仲裁
0
期限切れ
0
14
開発者 14
評価
(26)
プロジェクト
32
34%
仲裁
0
期限切れ
2
6%
15
開発者 15
評価
(89)
プロジェクト
253
78%
仲裁
9
22% / 56%
期限切れ
36
14%
仕事中
パブリッシュした人: 3 articles, 26 codes
16
開発者 16
評価
(12)
プロジェクト
16
25%
仲裁
1
0% / 0%
期限切れ
4
25%
仕事中
17
開発者 17
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
18
開発者 18
評価
(11)
プロジェクト
20
40%
仲裁
8
0% / 50%
期限切れ
3
15%
仕事中
19
開発者 19
評価
(17)
プロジェクト
21
14%
仲裁
8
38% / 38%
期限切れ
3
14%
取り込み中
20
開発者 20
評価
(47)
プロジェクト
59
59%
仲裁
4
75% / 25%
期限切れ
1
2%
取り込み中
21
開発者 21
評価
(14)
プロジェクト
20
25%
仲裁
0
期限切れ
2
10%
パブリッシュした人: 3 codes
22
開発者 22
評価
(2)
プロジェクト
4
50%
仲裁
0
期限切れ
0
仕事中
23
開発者 23
評価
(48)
プロジェクト
57
35%
仲裁
15
27% / 60%
期限切れ
1
2%
24
開発者 24
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
25
開発者 25
評価
(169)
プロジェクト
202
48%
仲裁
5
20% / 60%
期限切れ
2
1%
26
開発者 26
評価
(22)
プロジェクト
29
45%
仲裁
4
50% / 50%
期限切れ
1
3%
取り込み中
27
開発者 27
評価
(279)
プロジェクト
377
72%
仲裁
19
32% / 47%
期限切れ
15
4%
パブリッシュした人: 15 codes
28
開発者 28
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
29
開発者 29
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
類似した注文
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

プロジェクト情報

予算
30+ USD
締め切り
最低 1 最高 2 日

依頼者

出された注文1
裁定取引数0