Add Cumulative Drawdown From Peak Protection to Existing MT5 EA

Termos de Referência

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.


Respondido

1
Desenvolvedor 1
Classificação
(62)
Projetos
90
29%
Arbitragem
24
13% / 58%
Expirado
7
8%
Trabalhando
2
Desenvolvedor 2
Classificação
(107)
Projetos
175
25%
Arbitragem
23
13% / 78%
Expirado
16
9%
Livre
3
Desenvolvedor 3
Classificação
(12)
Projetos
18
17%
Arbitragem
3
33% / 67%
Expirado
3
17%
Livre
4
Desenvolvedor 4
Classificação
(158)
Projetos
201
60%
Arbitragem
10
80% / 0%
Expirado
0
Livre
Publicou: 1 código
5
Desenvolvedor 5
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Trabalhando
6
Desenvolvedor 6
Classificação
(8)
Projetos
8
0%
Arbitragem
2
50% / 0%
Expirado
1
13%
Trabalhando
7
Desenvolvedor 7
Classificação
(317)
Projetos
564
35%
Arbitragem
81
31% / 44%
Expirado
204
36%
Livre
8
Desenvolvedor 8
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
9
Desenvolvedor 9
Classificação
(166)
Projetos
176
45%
Arbitragem
3
33% / 33%
Expirado
1
1%
Trabalhando
10
Desenvolvedor 10
Classificação
(33)
Projetos
36
33%
Arbitragem
5
0% / 80%
Expirado
0
Trabalhando
Publicou: 2 códigos
11
Desenvolvedor 11
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
12
Desenvolvedor 12
Classificação
(244)
Projetos
288
76%
Arbitragem
13
77% / 0%
Expirado
4
1%
Livre
13
Desenvolvedor 13
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
14
Desenvolvedor 14
Classificação
(26)
Projetos
32
34%
Arbitragem
0
Expirado
2
6%
Livre
15
Desenvolvedor 15
Classificação
(89)
Projetos
253
78%
Arbitragem
9
22% / 56%
Expirado
36
14%
Trabalhando
Publicou: 3 artigos, 26 códigos
16
Desenvolvedor 16
Classificação
(12)
Projetos
16
25%
Arbitragem
1
0% / 0%
Expirado
4
25%
Trabalhando
17
Desenvolvedor 17
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
18
Desenvolvedor 18
Classificação
(11)
Projetos
20
40%
Arbitragem
8
0% / 50%
Expirado
3
15%
Trabalhando
19
Desenvolvedor 19
Classificação
(17)
Projetos
21
14%
Arbitragem
8
38% / 38%
Expirado
3
14%
Carregado
20
Desenvolvedor 20
Classificação
(47)
Projetos
59
59%
Arbitragem
4
75% / 25%
Expirado
1
2%
Carregado
21
Desenvolvedor 21
Classificação
(14)
Projetos
20
25%
Arbitragem
0
Expirado
2
10%
Livre
Publicou: 3 códigos
22
Desenvolvedor 22
Classificação
(2)
Projetos
4
50%
Arbitragem
0
Expirado
0
Trabalhando
23
Desenvolvedor 23
Classificação
(48)
Projetos
57
35%
Arbitragem
15
27% / 60%
Expirado
1
2%
Livre
24
Desenvolvedor 24
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
25
Desenvolvedor 25
Classificação
(169)
Projetos
202
48%
Arbitragem
5
20% / 60%
Expirado
2
1%
Livre
26
Desenvolvedor 26
Classificação
(22)
Projetos
29
45%
Arbitragem
4
50% / 50%
Expirado
1
3%
Carregado
27
Desenvolvedor 27
Classificação
(279)
Projetos
377
72%
Arbitragem
19
32% / 47%
Expirado
15
4%
Livre
Publicou: 15 códigos
28
Desenvolvedor 28
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
29
Desenvolvedor 29
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Pedidos semelhantes
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

Informações sobre o projeto

Orçamento
30+ USD
Prazo
de 1 para 2 dias

Cliente

Pedidos postados1
Número de arbitragens0