MT5 Expert Advisor: 1-Min Breakout with 56-Second Hard Exit & Trailing Balance Drawdown

Trabajo finalizado

Plazo de ejecución 1 día
Comentario del Cliente
very good he did exactly what i wanted very fast too professional
Comentario del Ejecutor
Very respectful and understanding customer. He had clear requirements and was helpful.

Tarea técnica

PLATFORM: MetaTrader 5 (MQL5)
ASSET: XAUUSD (Gold)
ACCOUNT TYPE: Live Raw Spread Account (Floating Spread + Commission) 500x leverage
The broker commission is exactly 
3 usd per standart lot per side6.00 round turn). The EA's internal trade tracking, net profit/loss metrics, and trailing drawdown calculations must completely factor in these commission charges alongside the raw asset spread.

I need a clean, optimized Expert Advisor for MT5 based on a 1-minute candle breakout strategy with strict time exits and capital protection.

1. INPUT SETTINGS (User Configurable)
• Target_Risk_Cash: (Fixed dollar amount per trade, e.g., i can control how much i can risk per trade like for example 5$ or 10 or 500 
• SL_Distance_Gold: (Fixed price distance, default 0.94) for example gold entry Price is 4300,50$ the sl is 4299,56$
• Risk_Reward_Ratio: (Default 1.10)
• Max_Daily_Loss_Percent: (Default 45.0)
• Session_1_Start / End: (Default 03:00 / 05:00 EST)
• Session_2_Start / End: (Default 08:00 / 12:00 EST)
 
NOTE ON TIME ZONES: Session inputs must reference the MetaTrader Server Time (TimeCurrent), NOT the user's local PC time. I will manually adjust these hour inputs to match my desired EST windows based on my broker's server clock.
I will 
Check their broker's server time using TimeCurrent() in MT5
Calculate the difference between their desired EST window and server time
Manually adjust the session inputs to match server time
Enter corrected values in the EA's input parameters
The EA should have two trading sessions that i control. I i i will decide when each session starts and ends by entering numbers in the EA settings.
The EA only trades during those times i set
The EA will have four input boxes that you fill in
1. Session 1 Start - When the first trading session begins
2. Session 1 End - When the first trading session ends
3. Session 2 Start - When the second trading session begins
4. Session 2 End - When the second trading session ends
the EA checks what time it is on my broker's server. If the current server time falls between any of the session start and end times, the EA is allowed to trade. If it's outside both sessions, the EA does nothing.
So if i set Session 1 to start at 11 and end at 13, the EA will only look for trades between 11:00 and 12:59 server time. At 13:00 exactly, it stops trading until the next session or the next day.


CORE TRADING LOGIC
• The EA monitors the 1-minute chart.
• Max 1 open trade at any given time. Only trade within the specified session hours.
• BUY ENTRY: If no trade is open, enter a BUY STOP Order the moment current price breaks above the HIGH of the previous completed 1-minute candle (Candle [1]).
• SELL ENTRY: If no trade is open, enter a SELL STOP Order the moment current price breaks below the LOW of the previous completed 1-minute candle (Candle [1]).
• TAKE PROFIT: Calculated using the Risk_Reward_Ratio multiplied by the SL distance. 1.10rr
• STOP LOSS: Fixed at the SL_Distance_Gold (e.g., if entry is 4350.00, SL for Buy is 4349.06).

• LOT SIZING: Must calculate dynamically before entry so that hitting the full SL equals exactly the Target_Risk_Cash amount that i chosed


HARD TIME EXIT (OnTimer execution)
• To ensure speed, please use an OnTimer() loop running every 1000ms.
• If a trade is open and the current server time reaches the 56th second of the minute (e.g., XX:XX:56), the trade must be closed immediately via market order, regardless of profit or loss status.If neither pending order has been triggered by the 56th second, the EA must delete both pending orders for that minute."
If a market position is open, the moment the current server time matches or exceeds the 56th second of the minute (e.g., time.sec >= 56), the position must be closed immediately via a market order, regardless of profit or loss.
Pending Order Cleanup: If neither the Buy Stop nor Sell Stop pending order has been triggered by the 56th second of the minute, the EA must immediately delete both pending orders.


BALANCE-BASED TRAILING DRAWDOWN PROTECTION
Tracking must be based on CLOSED account balance, completely ignoring open floating equity.
At the start of the day, set Peak_Balance = Current Balance.
If account balance increases after a trade closes, Peak_Balance ratchets up to match it.
If account balance decreases after a losing trade, Peak_Balance stays locked at its highest peak.
Calculate the Floor: Hard_Floor = Peak_Balance * (1.0 - (Max_Daily_Loss_Percent 45 / 100.0)).
If the closed account balance ever drops to or below this Hard_Floor, the EA must immediately close any active trade, cancel all pending stop order halt all operations, and block any new trades until the next calendar day.
Track a persistent variable called Peak_Balance. If the closed balance increases, Peak_Balance must ratchet up to match it. If the balance drops, Peak_Balance remains locked at its lifetime highest peak. Crucial: This peak must never automatically reset lower just because a new calendar day starts.
If the closed account balance drops to or below the hard floor wich is 45% of the account like for example the balance is 1000 and it become 550 or less then the EA must immediately close any active trade, delete all pending stop orders, halt all trading operations, and completely block execution until a new calendar day begins AND the user manually resets the EA."


NEWS FILTER INPUTS
• Use_News_Filter: (True/False, Default: True)
• News_Importance_Level: (Enum for MQL5 Calendar Impact: High Only, or High & Medium. Default: High Only)
• Filter_Currency: (Default: "USD")
• Mins_Before_News: (Default: 10)
• Mins_After_News: (Default: 10)
If for example there is high impact news at 14:30
The Block Before The EA must completely block any new trades or pending orders from 14:20 up until 14:30.
The Block After The EA must continue to block any new trades or pending orders after the news until 14:40.



DELIVERABLE: Fully commented source code (.mq5) and compiled file (.ex5).




Han respondido

1
Desarrollador 1
Evaluación
(111)
Proyectos
184
25%
Arbitraje
25
16% / 76%
Caducado
16
9%
Libre
2
Desarrollador 2
Evaluación
(22)
Proyectos
28
7%
Arbitraje
9
33% / 33%
Caducado
1
4%
Trabaja
3
Desarrollador 3
Evaluación
(556)
Proyectos
850
61%
Arbitraje
33
27% / 45%
Caducado
24
3%
Trabaja
Ha publicado: 1 ejemplo
4
Desarrollador 4
Evaluación
(13)
Proyectos
14
64%
Arbitraje
0
Caducado
0
Libre
5
Desarrollador 5
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
6
Desarrollador 6
Evaluación
(852)
Proyectos
1467
72%
Arbitraje
123
28% / 47%
Caducado
359
24%
Trabaja
Ha publicado: 3 artículos
7
Desarrollador 7
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
8
Desarrollador 8
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
9
Desarrollador 9
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 2 artículos, 4 ejemplos
10
Desarrollador 10
Evaluación
(6)
Proyectos
8
38%
Arbitraje
1
0% / 100%
Caducado
0
Libre
11
Desarrollador 11
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
12
Desarrollador 12
Evaluación
(369)
Proyectos
458
55%
Arbitraje
24
58% / 17%
Caducado
31
7%
Trabaja
13
Desarrollador 13
Evaluación
(212)
Proyectos
275
21%
Arbitraje
25
52% / 16%
Caducado
0
Trabaja
14
Desarrollador 14
Evaluación
(263)
Proyectos
309
76%
Arbitraje
14
71% / 0%
Caducado
6
2%
Trabajando
15
Desarrollador 15
Evaluación
(8)
Proyectos
8
0%
Arbitraje
2
50% / 0%
Caducado
1
13%
Trabaja
16
Desarrollador 16
Evaluación
(10)
Proyectos
12
33%
Arbitraje
0
Caducado
2
17%
Trabaja
Ha publicado: 1 ejemplo
17
Desarrollador 17
Evaluación
(3)
Proyectos
9
67%
Arbitraje
0
Caducado
0
Trabaja
18
Desarrollador 18
Evaluación
(16)
Proyectos
30
40%
Arbitraje
3
33% / 67%
Caducado
7
23%
Trabaja
19
Desarrollador 19
Evaluación
(52)
Proyectos
66
41%
Arbitraje
1
0% / 100%
Caducado
7
11%
Libre
20
Desarrollador 20
Evaluación
(14)
Proyectos
21
24%
Arbitraje
0
Caducado
2
10%
Libre
Ha publicado: 3 ejemplos
21
Desarrollador 21
Evaluación
(2676)
Proyectos
3416
68%
Arbitraje
77
48% / 14%
Caducado
343
10%
Trabaja
Ha publicado: 1 ejemplo
22
Desarrollador 22
Evaluación
(22)
Proyectos
30
40%
Arbitraje
8
25% / 38%
Caducado
2
7%
Ocupado
Ha publicado: 8 artículos, 35 ejemplos
23
Desarrollador 23
Evaluación
(20)
Proyectos
26
38%
Arbitraje
6
33% / 50%
Caducado
0
Libre
24
Desarrollador 24
Evaluación
(319)
Proyectos
572
35%
Arbitraje
83
31% / 45%
Caducado
207
36%
Trabaja
25
Desarrollador 25
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
26
Desarrollador 26
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
27
Desarrollador 27
Evaluación
(25)
Proyectos
31
13%
Arbitraje
14
0% / 79%
Caducado
9
29%
Libre
28
Desarrollador 28
Evaluación
(9)
Proyectos
10
10%
Arbitraje
0
Caducado
0
Libre
29
Desarrollador 29
Evaluación
(83)
Proyectos
97
32%
Arbitraje
9
22% / 56%
Caducado
5
5%
Trabaja
30
Desarrollador 30
Evaluación
(106)
Proyectos
129
25%
Arbitraje
25
28% / 56%
Caducado
8
6%
Libre
31
Desarrollador 31
Evaluación
(16)
Proyectos
21
29%
Arbitraje
2
50% / 0%
Caducado
4
19%
Trabaja
32
Desarrollador 32
Evaluación
(4)
Proyectos
4
25%
Arbitraje
0
Caducado
0
Libre
33
Desarrollador 33
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
34
Desarrollador 34
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
35
Desarrollador 35
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
36
Desarrollador 36
Evaluación
(62)
Proyectos
90
29%
Arbitraje
24
13% / 58%
Caducado
7
8%
Trabaja
37
Desarrollador 37
Evaluación
(40)
Proyectos
39
46%
Arbitraje
12
17% / 50%
Caducado
2
5%
Libre
38
Desarrollador 38
Evaluación
(6)
Proyectos
8
38%
Arbitraje
2
50% / 50%
Caducado
2
25%
Libre
39
Desarrollador 39
Evaluación
(14)
Proyectos
15
40%
Arbitraje
2
50% / 50%
Caducado
1
7%
Libre
40
Desarrollador 40
Evaluación
(4)
Proyectos
7
57%
Arbitraje
1
100% / 0%
Caducado
0
Libre
41
Desarrollador 41
Evaluación
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 11 ejemplos
42
Desarrollador 42
Evaluación
(3)
Proyectos
4
0%
Arbitraje
0
Caducado
0
Libre
43
Desarrollador 43
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
44
Desarrollador 44
Evaluación
(1)
Proyectos
2
50%
Arbitraje
0
Caducado
1
50%
Trabaja
45
Desarrollador 45
Evaluación
(161)
Proyectos
209
61%
Arbitraje
10
80% / 0%
Caducado
0
Libre
Ha publicado: 1 ejemplo
46
Desarrollador 46
Evaluación
(1)
Proyectos
2
0%
Arbitraje
1
0% / 0%
Caducado
0
Libre
Ha publicado: 3 artículos
47
Desarrollador 47
Evaluación
(78)
Proyectos
246
74%
Arbitraje
7
100% / 0%
Caducado
1
0%
Libre
Ha publicado: 1 artículo
48
Desarrollador 48
Evaluación
(1)
Proyectos
0
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
49
Desarrollador 49
Evaluación
(25)
Proyectos
33
18%
Arbitraje
6
50% / 33%
Caducado
4
12%
Libre
50
Desarrollador 50
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
51
Desarrollador 51
Evaluación
(3)
Proyectos
3
100%
Arbitraje
0
Caducado
0
Trabaja
52
Desarrollador 52
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
53
Desarrollador 53
Evaluación
(74)
Proyectos
98
57%
Arbitraje
5
80% / 20%
Caducado
4
4%
Trabajando
54
Desarrollador 54
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
55
Desarrollador 55
Evaluación
(54)
Proyectos
67
42%
Arbitraje
15
27% / 60%
Caducado
1
1%
Trabaja
56
Desarrollador 56
Evaluación
(298)
Proyectos
478
40%
Arbitraje
105
40% / 24%
Caducado
82
17%
Trabajando
Ha publicado: 2 ejemplos
57
Desarrollador 57
Evaluación
(271)
Proyectos
553
50%
Arbitraje
57
40% / 37%
Caducado
227
41%
Trabaja
58
Desarrollador 58
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
59
Desarrollador 59
Evaluación
(33)
Proyectos
36
33%
Arbitraje
5
0% / 80%
Caducado
0
Trabaja
Ha publicado: 2 ejemplos
60
Desarrollador 60
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
61
Desarrollador 61
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Solicitudes similares
I need an MT5 Expert Advisor (EA) specifically for NFP news trading. Strategy: - Trade EURUSD during the US Non-Farm Payroll (NFP) release. - Automatically identify the NFP release time. - Place a Buy Stop above the current price and a Sell Stop below the current price shortly before NFP. - Adjustable distance from current price for both pending orders. - When one order is triggered, automatically cancel the opposite
can you help me use a Tickblaze Algo NRBO on the NT platform? I have it somewhat set up, but I have other questions about running it & knowing how to operate it in NT. Thank you if anyone have experience in this kindly bib and let do it asap
I need a fully automated custom Expert Advisor for MetaTrader 5 (MQL5). The EA is intended for use on a The5ers $100,000 2-Step prop-firm account. IMPORTANT DELIVERY REQUIREMENT: I must receive the complete editable .mq5 source code as well as the compiled .ex5 file. Compiled-only delivery is NOT acceptable. The EA must be coded specifically for this project and must not copy trades, use external trading signals or
Overview I am looking for an experienced MQL5 developer to design and deliver a professional Expert Advisor for MetaTrader 5. Rather than dictating the strategy, I want the developer to propose a proven, well-documented approach they have personally built and validated — one with a genuine statistical edge, not curve-fitted results. Quality and transparency matter more than speed of delivery. Budget is negotiable for
I need a professional XAUUSD signal indicator for MetaTrader 5, written entirely in MQL5 (.mq5). IMPORTANT: This is NOT an auto-trading EA. It must never open, close or modify trades. It only analyzes XAUUSD and generates signals + MT5 push notifications. 1. Multi-timeframe analysis: H4 → H1 → M30 → M15 → M10 → M5 → M1. 2. Detect market structure: - Swing High / Swing Low - BOS - MSS - CHOCH - Bullish/Bearish HTF
Hi. I am looking for an experienced MQL5 developer for an advanced XAUUSD MT5 indicator. Before choosing a developer, I would like to see a small proof-of-concept or an example of a similar indicator you have already developed. My final indicator must be written from scratch in MQL5 and I must receive the complete .mq5 source code + compiled .ex5 . Main requirements: XAUUSD MT5 / MQL5 Indicator only — NO AutoTrading
Title: Advanced XAUUSD MT5 Indicator – MQL5 Source Code Required I need a professional MT5 indicator written from scratch in MQL5 (.mq5) for XAUUSD. The indicator must be signals/analysis only — AutoTrading must remain OFF . I need the complete editable .mq5 source code, not only an .ex5 file. The system should analyze multiple timeframes: H4 → H1 → M30 → M15 → M5 → M1 . Required logic: Higher-timeframe
I need a professional XAUUSD signal indicator for MetaTrader 5, written entirely in MQL5 (.mq5). IMPORTANT: This is NOT an auto-trading EA. It must never open, close or modify trades. It only analyzes XAUUSD and generates signals + MT5 push notifications. 1. Multi-timeframe analysis: H4 → H1 → M30 → M15 → M10 → M5 → M1. 2. Detect market structure: - Swing High / Swing Low - BOS - MSS - CHOCH - Bullish/Bearish HTF
i have indicator for Trading View, also copy for NT, i need someone to improve and check the NT version (indicator is simple is volume density koncept)…. when i put same settings on TV version and NT version i have diffrerent results, but this can be because diffrent market data or fact that TV sending tick info in blocks , not tick by tick like NT8 on both. I(ndicator base on counting volume) so besied that is it
I need a professional AI-assisted Forex trading Expert Advisor (EA) for MetaTrader 5. The EA should not be based on a simple single indicator strategy. I want a robust multi-factor trading system that can analyze market conditions, trend, momentum, volatility, price action and risk before entering a trade. Requirements: Forex trading on MT5 Automated analysis and trade execution Dynamic entry and exit decisions Stop

Información sobre el proyecto

Presupuesto
70 - 90 USD
Plazo límite de ejecución
de 2 a 5 día(s)