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 코드
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 코드
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 기고글, 26 코드
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 코드
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 코드
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