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

Spezifikation

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).




Bewerbungen

1
Entwickler 1
Bewertung
(108)
Projekte
176
25%
Schlichtung
23
13% / 78%
Frist nicht eingehalten
16
9%
Arbeitet
2
Entwickler 2
Bewertung
(19)
Projekte
24
8%
Schlichtung
9
33% / 33%
Frist nicht eingehalten
1
4%
Beschäftigt
3
Entwickler 3
Bewertung
(546)
Projekte
830
62%
Schlichtung
33
27% / 45%
Frist nicht eingehalten
23
3%
Arbeitet
Veröffentlicht: 1 Beispiel
4
Entwickler 4
Bewertung
(6)
Projekte
7
71%
Schlichtung
0
Frist nicht eingehalten
0
Arbeitet
5
Entwickler 5
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
6
Entwickler 6
Bewertung
(851)
Projekte
1460
72%
Schlichtung
122
29% / 48%
Frist nicht eingehalten
356
24%
Arbeitet
Veröffentlicht: 3 Artikel
7
Entwickler 7
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
8
Entwickler 8
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
9
Entwickler 9
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
10
Entwickler 10
Bewertung
(6)
Projekte
7
43%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
0
Frei
11
Entwickler 11
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
12
Entwickler 12
Bewertung
(365)
Projekte
439
54%
Schlichtung
22
50% / 14%
Frist nicht eingehalten
30
7%
Beschäftigt
13
Entwickler 13
Bewertung
(201)
Projekte
260
21%
Schlichtung
23
48% / 17%
Frist nicht eingehalten
0
Beschäftigt
14
Entwickler 14
Bewertung
(247)
Projekte
291
76%
Schlichtung
13
77% / 0%
Frist nicht eingehalten
4
1%
Arbeitet
15
Entwickler 15
Bewertung
(8)
Projekte
8
0%
Schlichtung
2
50% / 0%
Frist nicht eingehalten
1
13%
Arbeitet
16
Entwickler 16
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Arbeitet
Veröffentlicht: 1 Beispiel
17
Entwickler 17
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
18
Entwickler 18
Bewertung
(14)
Projekte
26
42%
Schlichtung
3
0% / 67%
Frist nicht eingehalten
6
23%
Beschäftigt
19
Entwickler 19
Bewertung
(52)
Projekte
66
41%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
7
11%
Frei
20
Entwickler 20
Bewertung
(14)
Projekte
20
25%
Schlichtung
0
Frist nicht eingehalten
2
10%
Frei
Veröffentlicht: 3 Beispiele
21
Entwickler 21
Bewertung
(2671)
Projekte
3404
68%
Schlichtung
77
48% / 14%
Frist nicht eingehalten
342
10%
Frei
Veröffentlicht: 1 Beispiel
22
Entwickler 22
Bewertung
(7)
Projekte
10
10%
Schlichtung
4
50% / 0%
Frist nicht eingehalten
0
Beschäftigt
Veröffentlicht: 4 Artikel, 34 Beispiele
23
Entwickler 23
Bewertung
(20)
Projekte
26
38%
Schlichtung
6
33% / 50%
Frist nicht eingehalten
0
Frei
24
Entwickler 24
Bewertung
(317)
Projekte
564
35%
Schlichtung
81
31% / 44%
Frist nicht eingehalten
204
36%
Frei
25
Entwickler 25
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
26
Entwickler 26
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
27
Entwickler 27
Bewertung
(25)
Projekte
31
13%
Schlichtung
13
0% / 77%
Frist nicht eingehalten
9
29%
Frei
28
Entwickler 28
Bewertung
(8)
Projekte
9
11%
Schlichtung
0
Frist nicht eingehalten
0
Frei
29
Entwickler 29
Bewertung
(78)
Projekte
88
31%
Schlichtung
9
11% / 56%
Frist nicht eingehalten
4
5%
Arbeitet
30
Entwickler 30
Bewertung
(104)
Projekte
127
24%
Schlichtung
23
30% / 52%
Frist nicht eingehalten
8
6%
Frei
31
Entwickler 31
Bewertung
(12)
Projekte
16
25%
Schlichtung
1
0% / 0%
Frist nicht eingehalten
4
25%
Arbeitet
32
Entwickler 32
Bewertung
(1)
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
33
Entwickler 33
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
34
Entwickler 34
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
35
Entwickler 35
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
36
Entwickler 36
Bewertung
(62)
Projekte
90
29%
Schlichtung
24
13% / 58%
Frist nicht eingehalten
7
8%
Arbeitet
37
Entwickler 37
Bewertung
(38)
Projekte
37
43%
Schlichtung
12
17% / 50%
Frist nicht eingehalten
2
5%
Frei
38
Entwickler 38
Bewertung
(3)
Projekte
5
20%
Schlichtung
1
100% / 0%
Frist nicht eingehalten
2
40%
Frei
Ähnliche Aufträge
I have a High-Frequency Trading (HFT) Expert Advisor for both MT4 and MT5 . The EA performs consistently and profitably on demo accounts , but when I run it on an IC Markets Raw and standard live account , it begins generating losses under what appear to be the same trading conditions. if needed i can provide Full EA source code (.mq4 and/or .mq5) and Set file. I need an experienced MQL4/MQL5 developer to thoroughly
I have a live MT5 account with Myfxbook verified track record (88% return, 17% DD, 100K+ trades). Trade copier is ready. I need a sales system to attract copy traders. You decide the approach — landing page, email, or any strategy you think works best
I am looking for an experienced developer to create a custom MT4 Expert Advisor (EA) / trading robot. Requirements: Fully automated trading system for MetaTrader 4 Clear entry and exit strategy (can be based on indicators, price action, or a custom logic) Risk management features (lot size control, stop loss, take profit, trailing stop) Ability to run on multiple currency pairs Option to adjust settings (risk %
I am a forex trader I want to help to all the other traders with translating and online cources so which is interested buy this package and join us thank you
Kenyan Editor 30+ USD
1.a specific robot to earn for a quick and reasonable trade all over. The Idear of being specific makes me perfect, I want this to be clear that make me a high luxurious person will describe me and I will promise to advertise the market both internally and externally
i need the EA same working on trading view Hikin Ashi chart with same specifications and rules on mt5 Rules as per in script is available when applied on chart need to check on Hikin Ashi chart 1. Buy trade when purple candle closed above last any black candle high on Hikin Ashi & avoid long abnormal candle & if market makes more than 20-30 candles without changing the color 2. Buy when purple candle close above its
I have my own strategy in 1min. I want it convert to a bot. Please reach me only coding experts. I dont want bit makers from Ai. Demo version should be provided for confirmation
Siraj Durrani 30 - 50 USD
Title: Need MT4 Expert Advisor for XAUUSD (SMC/ICT Strategy) Requirements: I need a professional MT4 Expert Advisor (EA) for XAUUSD based on Smart Money Concepts (SMC) / ICT strategy. Features: - Platform: MetaTrader 4 (MT4) - Symbol: XAUUSD - Automatic Buy and Sell trades. - Detect market trend automatically. - Use Break of Structure (BOS) and Change of Character (CHoCH) for trend confirmation. - Enter trades only
Xauusd to gold 35+ USD
The EA must be fully automated , backtest-friendly , prop-firm-safe , and built with a clean modular architecture . Core Strategy Requirements 1. Higher Timeframe Bias Use D1 and H4 . Use 200 EMA as trend filter: If price is above 200 EMA on both D1 and H4 -> allow BUY only If price is below 200 EMA on both D1 and H4 -> allow SELL only If D1 and H4 are not aligned -> no trade 2. Market Structure Module Detect and
Eagoldcent 30 - 200 USD
I need an MT4 & MT5 Expert Advisor for ALL pair support Cent Account. Features: Platform: MT4 & MT5 Pair: All Pair Account Type: Cent Account Buy and Sell Fixed Lot Start (user input) Lot Exponent / Multiplier (user input) PipStep / Grid Distance (user input) Take Profit (user input) Maximum Trades (user input) Magic Number (user input) Inputs: Start Lot = 0.01 Take Profit = 40 Lot Exponent = 1.50 PipStep = 40 Max

Projektdetails

Budget
70 - 90 USD
Ausführungsfristen
von 2 bis 5 Tag(e)

Kunde

Veröffentlichte Aufträge1
Anzahl der Schlichtungen0