Session Breakout for MT5

MQL5 专家 脚本 外汇 策略优化

工作已完成

执行时间1 一天

指定

Build a Session Breakout EA for MT5 (EURUSD) — EXACTLY as below. No changes to logic.

but make it work on all pairs

double slPips, tpPips;

if (AssetType == "Forex")      { slPips = 20; tpPips = 60; }

if (AssetType == "GBPUSD")     { slPips = 25; tpPips = 75; }

if (AssetType == "NAS100")     { slPips = 30; tpPips = 90; }

if (AssetType == "US30")       { slPips = 40; tpPips = 120; }

if (AssetType == "Gold")       { slPips = 150; tpPips = 450; }

but optimize it for eurusd


================================================================
CORE STRATEGY
================================================================
- Trade ONLY at London Open: 08:00–08:05 UTC
- Breakout of Asian Session Range (00:00–07:59 UTC)
- Entry: 5M candle CLOSES outside Asian High/Low
- Volume Filter: Breakout candle volume > 2× 20-period average
- Risk: 0.5% of account per trade
- Option: Manual lot size override (input)
- SL: 20 pips beyond breakout level
- TP: 1:3 RR (60 pips target)
- Max 1 trade per day
- Skip: NFP, ECB Rate, FOMC, CPI, bank holidays

================================================================
TIME FILTER (BROKER TIME AUTO-DETECT)
================================================================
- Use TimeGMT() to detect broker offset
- Auto-calculate 08:00 UTC based on broker time
- Example: If broker is GMT+3 → trade 11:00–11:05 broker time

================================================================
INPUTS (User Can Change Only These)
================================================================
input double   RiskPercent       = 0.5;     // % risk
input double   FixedLotSize      = 0.0;     // 0 = use % risk, >0 = fixed lots
input int      VolumeMultiplier  = 2;       // Fixed
input int      SlippagePips      = 3;       // Max slippage
input bool     UseNewsFilter     = true;    // Auto-skip news
input string   MagicComment      = "SBOv1";

================================================================
SESSION LOGIC
================================================================
// Reset at 00:00 UTC
if (TimeHour(TimeGMT()) == 0 && TimeMinute(TimeGMT()) == 0)
{
   AsianHigh = -999; AsianLow = 999;
}

// Track Asian range (00:00–07:59 UTC)
if (TimeHour(TimeGMT()) >= 0 && TimeHour(TimeGMT()) < 8)
{
   double h = iHigh(_Symbol, PERIOD_H1, 0);
   double l = iLow(_Symbol, PERIOD_H1, 0);
   if (h > AsianHigh) AsianHigh = h;
   if (l < AsianLow)  AsianLow  = l;
}

// At 08:00 UTC → lock range
if (TimeHour(TimeGMT()) == 8 && TimeMinute(TimeGMT()) == 0)
   FinalAsianHigh = AsianHigh; FinalAsianLow = AsianLow;

// Trade window: 08:00–08:05 UTC (broker time adjusted)
datetime brokerTime = TimeCurrent();
int brokerHour = TimeHour(brokerTime);
int brokerMin  = TimeMinute(brokerTime);
int utcHour    = TimeHour(TimeGMT());
if (utcHour == 8 && brokerMin >= 0 && brokerMin <= 5)
   CheckBreakout();

================================================================
VOLUME FILTER
================================================================
double vol    = iVolume(_Symbol, PERIOD_M5, 1);
double volAvg = iMA(_Symbol, PERIOD_M5, 20, 0, MODE_SMA, PRICE_VOLUME, 1);
if (vol <= volAvg * VolumeMultiplier) return;

================================================================
ENTRY LOGIC
================================================================
if (iClose(PERIOD_M5, 1) > FinalAsianHigh && iLow(PERIOD_M5, 1) <= FinalAsianHigh)
   → LONG
if (iClose(PERIOD_M5, 1) < FinalAsianLow  && iHigh(PERIOD_M5, 1) >= FinalAsianLow)
   → SHORT

================================================================
RISK & POSITION SIZING
================================================================
double slPips = 20;
double lots;

if (FixedLotSize > 0)
   lots = FixedLotSize;
else
{
   double risk = AccountBalance() * RiskPercent / 100;
   double pipValue = MarketInfo(_Symbol, MODE_TICKVALUE);
   lots = NormalizeDouble(risk / (slPips * pipValue * 10), 2);
}
lots = MathMax(lots, 0.01);

================================================================
NEWS FILTER (BUILT-IN CALENDAR)
================================================================
- Use Forex Factory RSS or built-in MT5 calendar
- Skip if ANY high-impact event in next 2 hours:
  → NFP, ECB Interest Rate, FOMC, CPI (US/EU)
- Hardcode event names + auto-check

================================================================
TRADE MANAGEMENT
================================================================
- No trailing stop
- No partial close
- Max hold: 8 hours (auto-close at 16:00 UTC)
- If no fill by 08:05 UTC → cancel
- Close at TP or SL only

================================================================
SAFETY FEATURES
================================================================
- No trading on weekends
- No trading if spread > 2.0 pips (iSpread)
- No trading if equity < 50% of start balance
================================================================
DELIVERABLES
================================================================
1. .ex5 file
2. .mq5 source (fully commented)
3. PDF: 1-page user guide
4. CSV: Backtest 2015–2025 (1,026 trades)


反馈

1
开发者 1
等级
(212)
项目
285
46%
仲裁
27
59% / 37%
逾期
36
13%
空闲
2
开发者 2
等级
(19)
项目
24
8%
仲裁
9
33% / 33%
逾期
1
4%
已载入
3
开发者 3
等级
(1)
项目
2
0%
仲裁
1
0% / 100%
逾期
0
空闲
发布者: 2 代码
4
开发者 4
等级
(62)
项目
90
29%
仲裁
24
13% / 58%
逾期
7
8%
工作中
5
开发者 5
等级
项目
0
0%
仲裁
1
0% / 100%
逾期
0
空闲
6
开发者 6
等级
(434)
项目
638
53%
仲裁
32
59% / 22%
逾期
6
1%
工作中
7
开发者 7
等级
(510)
项目
977
74%
仲裁
27
19% / 67%
逾期
100
10%
空闲
发布者: 1 文章, 6 代码
8
开发者 8
等级
(4)
项目
5
40%
仲裁
1
0% / 0%
逾期
0
空闲
9
开发者 9
等级
(33)
项目
38
21%
仲裁
5
0% / 60%
逾期
0
空闲
10
开发者 10
等级
(39)
项目
58
19%
仲裁
6
33% / 17%
逾期
1
2%
空闲
发布者: 2 代码
11
开发者 11
等级
(1)
项目
1
100%
仲裁
0
逾期
0
空闲
12
开发者 12
等级
(317)
项目
564
35%
仲裁
81
31% / 44%
逾期
204
36%
空闲
13
开发者 13
等级
(5)
项目
4
25%
仲裁
1
0% / 100%
逾期
0
空闲
14
开发者 14
等级
项目
0
0%
仲裁
0
逾期
0
空闲
15
开发者 15
等级
(217)
项目
369
33%
仲裁
34
41% / 29%
逾期
108
29%
空闲
发布者: 1 代码
16
开发者 16
等级
(21)
项目
25
52%
仲裁
3
0% / 100%
逾期
2
8%
空闲
相似订单
Your Trading app in 1 day 200 - 10000 USD
Custom MT5 Trading Solutions — Expert Advisors, Indicators & Tools I build reliable, well-documented MetaTrader 5 applications in native MQL5, tailored to your exact trading rules. Whether you have a strategy on paper, a TradingView script, or just an idea, I turn it into clean, tested code you can run with confidence. What I can develop for you: Expert Advisors (trading robots): Full automation of your strategy with
🔍 Strategy Logic 📌 Indicators Used 21 EMA RSI (Upper Level: 61, Lower Level: 39 – Customizable) 📈 Buy Side Setup (Long Entry) Step 1 – Trend Confirmation A Green candle must close above 21 EMA. Step 2 – Pattern Formation After the green candle, observe next 4 candles. At least one Red candle must form (opposite candle). That Red candle must also close above EMA. Step 3 – Key Level Marking Mark the High of the Red
Dear Developer, I am looking to hire an experienced Meta Trader4 and 5 (MQL5) Expert Advisor developer to build a custom Expert Advisor for XAUUSD (Gold). This project is based on a structured swing trading system using market structure analysis and multi-timeframe confirmation. PROJECT OVERVIEW The Expert Advisor must be designed to trade XAUUSD using the following multi-timeframe approach: • Daily (D1): Optional
# Project Specification — MT5 Expert Advisor "Prince Strategy" ## Project Goal Develop an Expert Advisor (trading robot) for MetaTrader 5 that automates a price-action trading strategy based on candlestick patterns across multiple timeframes. The robot must work on the forex.com broker. --- ## 1. Traded Instruments The robot must trade the following 4 forex pairs: - GBPUSD - EURUSD - NZDUSD - AUDUSD **Important
I am looking for an experienced MQL5 developer to build a robust, high performance Expert advisor (EA) designed specifically for passing and managing funded accounts.The primary focus is to make some good money and also focus on risk management, consistent equity growth
Expert Advisor (EA) Requirements – MT5 (MQL5) Project Overview Develop an automated Expert Advisor (EA) for MetaTrader 5 based on EMA crossover signals combined with strict risk management and trade management principles. The EA must be optimized for Forex pairs and indices and should operate automatically without manual intervention. Entry Conditions Buy Setup Fast EMA crosses above Slow EMA. Current candle closes
I am in need of a profitable scalping EA for gold. No grid or martingale strategy pls. If you have one fully developed and working, pls reach out. You should be able to provide trial version
MT5 Expert Advisor Development Project Overview I am looking for an experienced MQL5 developer to build a custom MetaTrader 5 Expert Advisor based on a grid-cycle trading framework. This is not a standard grid EA . The system combines: Session-based trade initiation Multi-filter signal generation Dynamic grid management Advanced basket management State-machine-driven trade lifecycle management Dynamic take-profit
Need an MT5 EA coded in MQL5. Strategy uses internally calculated MT5 Heikin Ashi candles, EMA 9 and EMA 21 on M1 USDJPY. Fixed lot size 12.20. One trade at a time. 40-point stop loss. Exit after 3 consecutive opposite Heikin Ashi candles. I have a detailed strategy document and video examples of valid and invalid entries. Videos linked show MT5 IOS but custom EA code will be used for windows MT5
Just a straight forward ea that reacts from candle close and open area using martingale option knowing what the broker charges per pair because will use it in a Z spread account so the ea will know what they charge or I can manually set charges so before ea close in profit it makes sure it covers the charges and added little profit before closing

项目信息

预算
30+ USD
截止日期
 1  20 天