Session Breakout for MT5

Lavoro terminato

Tempo di esecuzione 1 giorno

Specifiche

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)


Con risposta

1
Sviluppatore 1
Valutazioni
(213)
Progetti
286
47%
Arbitraggio
27
59% / 37%
In ritardo
36
13%
Gratuito
2
Sviluppatore 2
Valutazioni
(21)
Progetti
27
7%
Arbitraggio
9
33% / 33%
In ritardo
1
4%
In elaborazione
3
Sviluppatore 3
Valutazioni
(1)
Progetti
2
0%
Arbitraggio
1
0% / 100%
In ritardo
0
Gratuito
Pubblicati: 2 codici
4
Sviluppatore 4
Valutazioni
(62)
Progetti
90
29%
Arbitraggio
24
13% / 58%
In ritardo
7
8%
In elaborazione
5
Sviluppatore 5
Valutazioni
Progetti
0
0%
Arbitraggio
1
0% / 100%
In ritardo
0
Gratuito
6
Sviluppatore 6
Valutazioni
(434)
Progetti
640
53%
Arbitraggio
34
62% / 21%
In ritardo
6
1%
In elaborazione
7
Sviluppatore 7
Valutazioni
(510)
Progetti
977
74%
Arbitraggio
27
19% / 67%
In ritardo
100
10%
Gratuito
Pubblicati: 1 articolo, 6 codici
8
Sviluppatore 8
Valutazioni
(4)
Progetti
5
40%
Arbitraggio
1
0% / 0%
In ritardo
0
Gratuito
9
Sviluppatore 9
Valutazioni
(33)
Progetti
38
21%
Arbitraggio
5
0% / 60%
In ritardo
0
Gratuito
10
Sviluppatore 10
Valutazioni
(39)
Progetti
59
20%
Arbitraggio
6
33% / 17%
In ritardo
1
2%
In elaborazione
Pubblicati: 2 codici
11
Sviluppatore 11
Valutazioni
(1)
Progetti
1
100%
Arbitraggio
0
In ritardo
0
Gratuito
12
Sviluppatore 12
Valutazioni
(318)
Progetti
565
35%
Arbitraggio
81
31% / 44%
In ritardo
204
36%
In elaborazione
13
Sviluppatore 13
Valutazioni
(5)
Progetti
4
25%
Arbitraggio
1
0% / 100%
In ritardo
0
Gratuito
14
Sviluppatore 14
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
15
Sviluppatore 15
Valutazioni
(217)
Progetti
369
33%
Arbitraggio
34
41% / 29%
In ritardo
108
29%
Gratuito
Pubblicati: 1 codice
16
Sviluppatore 16
Valutazioni
(21)
Progetti
25
52%
Arbitraggio
3
0% / 100%
In ritardo
2
8%
Gratuito
Ordini simili
Anallysis 30+ USD
Market signal analysis is the process of identifying, interpreting, and evaluating specific indicators or cues in the financial market to predict the direction of asset price movements. The results of this analysis generate trading signals that provide specific recommendations regarding the best time to buy, sell, or hold an asset
We are looking for an expert algorithmic trading developer to build a high-performance, fully automated Custom Expert Advisor (EA) or trading bot. The bot must integrate advanced Smart Money Concepts (SMC) , Inner Circle Trader (ICT) methodologies, and Volume Spread Analysis (VSA) with a high-frequency trading (HFT) style execution and scaling model. The core objective is to program a bot that identifies
I need an MT5 Expert Advisor based on my A+ ICT/SMC Institutional Anticipation Framework. The EA must use a strict multi-timeframe hierarchy: Daily = Liquidity Map ONLY: Identify BSL/SSL, swept/unswept liquidity, equal highs/lows, major OBs, FVGs and institutional POIs. H4 = Institutional Direction: H4 determines the ONLY bias (BUY or SELL) using structure, BOS/CHoCH, OB, FVG and Premium/Discount. Lower timeframes
Automatic buy and sell entries. stoploss (sl) take profit (tp) risk management and adjustable lot size. Adjustable risk percentage per trade. Trailing stop maximum number of open trades. Trading hours filter. Ability to backtest and optimize the strategy. Easy to use settings. The EA should work reliably on mt5 and provide the source code. I want the developer to test the EA and provide backtest results before
I am looking to see if you can convert my pinescript into a NinjaTrader bot so I can get automated trading instead of manually doing it in TradingView i would like to get it to just do the trades for me based on my script. let me know who can do this perfectly
Develop an Expert Advisor for MetaTrader 5 that manages existing positions. Features Automatically detect all open positions. Apply Break-Even after price reaches a configurable profit. Partial Close: Close X% of volume at the first target. Move Stop Loss to Break-Even. ATR Trailing Stop (optional). Magic Number filter. Comment filter. Symbol filter. Trading session filter. Retry mechanism for trade operations
WillyFX 30+ USD
need an MT5 Expert Advisor designed for educational and demo-account testing. The robot should identify trading opportunities using clear technical rules, manage entries and exits automatically, include stop-loss and take-profit controls, limit risk per trade, avoid excessive trading, and provide adjustable settings for backtesting and optimization
Forex robot 30+ USD
Hello… need an MT5 expert advisor that scans up to five user-selected symbols for bullish and bearish engulfing patterns on a chosen timeframe, displays a signal dashboard with pattern strength scores, and automatically enters trades with risk-based lot sizing, fixed stop-loss and take-profit tied to the engulfing candle’s high or low
Mt5 ea 30+ USD
I have a fast execution ea that need a little touch, it trade on gold and my problem is about the risk ratio the tp is 3pip and stop loss 20 but i cannot get it right to make the average win larger and average loss lower. I would like to know if i can get help to get it right without touching the tragedy and the trade frequency. Those two pictures I attached is the example of what my bot actually do like i explained
Requirements Specification Here is an example of Requirements Specification for the development of the MACD Sample Expert Advisor, which is available in the MetaTrader 5 standard package. 1. The idea of the trading system is as follows : market entries are performed when MACD's main and signal lines intersect in the current trend direction . 2. Trend is determined based on the Exponential Moving Average with

Informazioni sul progetto

Budget
30+ USD
Scadenze
da 1 a 20 giorno(i)