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

Job finished

Execution time 1 day
Feedback from customer
very good he did exactly what i wanted very fast too professional
Feedback from employee
Very respectful and understanding customer. He had clear requirements and was helpful.

Specification

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




Responded

1
Developer 1
Rating
(109)
Projects
180
25%
Arbitration
24
17% / 75%
Overdue
16
9%
Working
2
Developer 2
Rating
(21)
Projects
27
7%
Arbitration
9
33% / 33%
Overdue
1
4%
Working
3
Developer 3
Rating
(550)
Projects
838
61%
Arbitration
33
27% / 45%
Overdue
24
3%
Free
Published: 1 code
4
Developer 4
Rating
(9)
Projects
11
55%
Arbitration
0
Overdue
0
Free
5
Developer 5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
6
Developer 6
Rating
(851)
Projects
1462
72%
Arbitration
122
29% / 48%
Overdue
357
24%
Working
Published: 3 articles
7
Developer 7
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
8
Developer 8
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
9
Developer 9
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Published: 1 code
10
Developer 10
Rating
(6)
Projects
8
38%
Arbitration
1
0% / 100%
Overdue
0
Free
11
Developer 11
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
12
Developer 12
Rating
(366)
Projects
446
54%
Arbitration
23
57% / 17%
Overdue
30
7%
Loaded
13
Developer 13
Rating
(203)
Projects
264
22%
Arbitration
24
50% / 17%
Overdue
0
Loaded
14
Developer 14
Rating
(258)
Projects
302
76%
Arbitration
13
77% / 0%
Overdue
4
1%
Loaded
15
Developer 15
Rating
(8)
Projects
8
0%
Arbitration
2
50% / 0%
Overdue
1
13%
Working
16
Developer 16
Rating
(4)
Projects
5
40%
Arbitration
0
Overdue
0
Working
Published: 1 code
17
Developer 17
Rating
(2)
Projects
6
67%
Arbitration
0
Overdue
0
Working
18
Developer 18
Rating
(14)
Projects
28
39%
Arbitration
3
0% / 67%
Overdue
6
21%
Loaded
19
Developer 19
Rating
(52)
Projects
66
41%
Arbitration
1
0% / 100%
Overdue
7
11%
Free
20
Developer 20
Rating
(14)
Projects
20
25%
Arbitration
0
Overdue
2
10%
Free
Published: 3 codes
21
Developer 21
Rating
(2674)
Projects
3411
68%
Arbitration
77
48% / 14%
Overdue
342
10%
Free
Published: 1 code
22
Developer 22
Rating
(13)
Projects
20
45%
Arbitration
5
40% / 20%
Overdue
2
10%
Working
Published: 7 articles, 35 codes
23
Developer 23
Rating
(20)
Projects
26
38%
Arbitration
6
33% / 50%
Overdue
0
Free
24
Developer 24
Rating
(318)
Projects
565
35%
Arbitration
81
31% / 44%
Overdue
204
36%
Working
25
Developer 25
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
26
Developer 26
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
27
Developer 27
Rating
(25)
Projects
31
13%
Arbitration
13
0% / 77%
Overdue
9
29%
Free
28
Developer 28
Rating
(9)
Projects
10
10%
Arbitration
0
Overdue
0
Free
29
Developer 29
Rating
(82)
Projects
93
31%
Arbitration
9
22% / 56%
Overdue
5
5%
Loaded
30
Developer 30
Rating
(106)
Projects
129
25%
Arbitration
25
28% / 56%
Overdue
8
6%
Free
31
Developer 31
Rating
(14)
Projects
18
22%
Arbitration
2
50% / 0%
Overdue
4
22%
Loaded
32
Developer 32
Rating
(4)
Projects
4
25%
Arbitration
0
Overdue
0
Free
33
Developer 33
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
34
Developer 34
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
35
Developer 35
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
36
Developer 36
Rating
(62)
Projects
90
29%
Arbitration
24
13% / 58%
Overdue
7
8%
Working
37
Developer 37
Rating
(39)
Projects
38
45%
Arbitration
12
17% / 50%
Overdue
2
5%
Free
38
Developer 38
Rating
(6)
Projects
8
38%
Arbitration
1
100% / 0%
Overdue
2
25%
Free
39
Developer 39
Rating
(14)
Projects
15
40%
Arbitration
2
50% / 50%
Overdue
1
7%
Free
40
Developer 40
Rating
(4)
Projects
7
57%
Arbitration
1
100% / 0%
Overdue
0
Free
41
Developer 41
Rating
Projects
1
0%
Arbitration
0
Overdue
0
Free
Published: 2 codes
42
Developer 42
Rating
(3)
Projects
4
0%
Arbitration
0
Overdue
0
Free
43
Developer 43
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
44
Developer 44
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
45
Developer 45
Rating
(160)
Projects
206
61%
Arbitration
10
80% / 0%
Overdue
0
Working
Published: 1 code
46
Developer 46
Rating
(1)
Projects
2
0%
Arbitration
1
0% / 0%
Overdue
0
Free
Published: 2 articles
47
Developer 47
Rating
(78)
Projects
246
74%
Arbitration
7
100% / 0%
Overdue
1
0%
Free
Published: 1 article
48
Developer 48
Rating
(1)
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Free
49
Developer 49
Rating
(25)
Projects
32
19%
Arbitration
5
40% / 40%
Overdue
4
13%
Working
50
Developer 50
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
51
Developer 51
Rating
(3)
Projects
3
100%
Arbitration
0
Overdue
0
Working
52
Developer 52
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
53
Developer 53
Rating
(62)
Projects
77
58%
Arbitration
6
67% / 17%
Overdue
1
1%
Loaded
54
Developer 54
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
55
Developer 55
Rating
(49)
Projects
59
36%
Arbitration
15
27% / 60%
Overdue
1
2%
Working
56
Developer 56
Rating
(298)
Projects
478
40%
Arbitration
105
40% / 24%
Overdue
82
17%
Loaded
Published: 2 codes
57
Developer 57
Rating
(271)
Projects
553
50%
Arbitration
57
40% / 37%
Overdue
227
41%
Working
58
Developer 58
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
59
Developer 59
Rating
(33)
Projects
36
33%
Arbitration
5
0% / 80%
Overdue
0
Working
Published: 2 codes
60
Developer 60
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
61
Developer 61
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
I'm looking for a developer that can make me an EA that uses TP / SL for NASDAQ ( NAS100 ). It should be trend following and fully customizable with a cool panel Thanks
Hi, I’m looking for an experienced MT5/MQL5 developer to assess and potentially develop a custom trade copier. The requirement is to copy trades from Vantage Web Copy Trading to an MT5 account in real time. Core requirements: Source: Vantage Web Copy Trading Destination: MT5 Instrument: XAUUSD only Copy trade opening and closing Copy partial closures No SL/TP required MT5 account can be with Vantage or another
Swing Breaks & AMD Expert Advisor The Swing Breaks & AMD Expert Advisor is an automated trading system designed around two core market-structure concepts: Swing Breaks and the AMD (Accumulation, Manipulation, Distribution) model . The EA is designed to analyze price action, identify meaningful swing structures, detect potential breaks of those structures, and evaluate the surrounding market behavior for possible AMD
I'm looking for a swing trading EA that takes 1-3 trades / week, holds these positions from a few days up to about 1.5 weeks. Symbol : any Strategy : any Timeframe : any Platform : MT4 only The catch : you would need to come up with the STRATEGY AND do the CODING The must have's : c onstant monthly returns, low drawdown I will backtest the trial version of your .ex4 file for 20+ years with 99.9% tick data accuracy
I'm a ninja trader day trader and I have worked with a company called Legendary Trader and use their indicated and automated strategies to trade. I rencenly have been playing with a free indicator I was able to download that uses CCI & ATR calculations to define the market being in an up or down trend. I have found in reviewing historical data that taking a trade when the signal flips from bull to bear sentiment or
PROJECT OVERVIEW I need a production-grade, modular Expert Advisor for MetaTrader 5 built to institutional coding standards. This is not a simple indicator-crossover bot. The system must be object-oriented, fully commented, and structured so individual modules can be replaced or disabled without breaking the build. Broker: IC Markets Raw. Primary symbol: XAUUSD. Secondary validation: EURUSD, GBPUSD, USDJPY, AUDUSD
Flummox 0.1 30+ USD
//@version=5 strategy("Vol10 Triple Confluence M15", overlay=true, margin_long=100, margin_short=100) // === INPUTS === emaLen = input.int(200, "EMA Trend") rsiLen = input.int(14, "RSI Length") bbLen = input.int(14, "Bands Length") rsiOversold = input.float(25, "RSI Buy Zone") rsiOverbought = input.float(77.38, "RSI Sell Zone") // === INDICATORS === emaTrend = ta.ema(close, emaLen) ema1 = ta.ema(close, bbLen) ema2 =
Access and confidentiality restrictions: You will receive only a separately named copy of the Commander . Existing trading EAs, presets, account credentials, Telegram credentials and proprietary entry/exit code will not be shared. The Commander intelligence must be developed using: Defined signal/input interfaces Anonymized historical logs and replay data Mock EA signals and test harnesses Documented authority and
need an EA or indicator done , based on any strategy but with the following specific risk management parameters ; were i am able to do at least 2RR(standard reward-risk ratio for every trade) , fair win rate that is at leat 50% , EA should be able to generate at least 2 trades and above per week , favourable sharpe ratio . total drawdown of not more than 8% any given month and not over 3% any given day , would
I need an MQL5 trading robot for Forex. It should open and close trades based on my strategy rules. Please include money management, stop loss, take profit, and lot size settings. The EA should be stable, easy to edit, and tested before delivery. I will share the exact entry and exit rules with the developer

Project information

Budget
70 - 90 USD
Deadline
from 2 to 5 day(s)