The primary expert advisor implements a US opening gap momentum strategy, utilizing ATR-based gap thresholds and Z-Score volatility regime detection to identify entry points. Risk management features include a triple-barrier exit method comprising price-based targets, stop losses, and time-based holding limits. The system also includes advanced protections such as breakeven triggers, early invalidation rules, and a monthly circuit breaker to limit consecutive losses.
US opening gap momentum continuation logic
Triple barrier exit method with time-based limits
Volatility regime detection using Z-Score and ATR
Monthly circuit breaker based on consecutive losses
Read from STRAT-20260902-USGAP_MOM-M15-v1.1.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpGapThresholdATR
double
1.0
Umbral de Gap (k_gap * ATR_D14)
InpMaxRetracePct
double
0.5
Retroceso Maximo Permitido (0.0 a 1.0) en vela confirmacion
InpSessionStartHour
int
16
Hora Servidor Apertura US (16 en GMT+3 / 15 en GMT+2 para 09:30 ET)
InpSessionStartMin
int
30
Minuto Servidor Apertura US (30 para 09:30 ET)
InpFastAtrPeriod
int
5
Periodo ATR Rapido (D1)
InpSlowAtrPeriod
int
14
Periodo ATR Lento (D1)
InpZScoreWindow
int
20
Ventana Z-Score (Dias)
InpZScoreThreshold
double
0.67
Umbral Z-Score Alta Volatilidad (Expansion)
InpProfitMultiplier
double
1.25
B1: Take Profit (* ATR D14 cerrado, calibrado a 1.25x)
InpStopMultiplier
double
1.0
B2: Stop Loss (* ATR M15 intradia)
InpMaxHoldingBars
int
26
B3: Limite Temporal (26 barras M15 = 6.5h RTH)
InpUseEarlyInvalid
bool
true
Activar Salida por Invalidacion Temprana (Primeros 30 min)
Show all 20 inputs
Name
Type
Default
Description
InpUseBreakeven
bool
true
Activar Proteccion Breakeven
InpBreakevenTrigger
double
0.75
Ganancia Latente para Disparo (* ATR M15)
InpBreakevenLockPts
int
10
Puntos asegurados sobre precio de entrada
InpUseCircuitBreaker
bool
true
Activar Circuit Breaker Mensual
InpMaxConsecLosses
int
3
Maximas perdidas consecutivas permitidas en el mes
InpLotSize
double
0.10
Tamano de Lote Fijo
InpMagicNumber
ulong
20260903
Magic Number Unico v1.1
InpStrategyID
string
STRAT-20260902-USGAP_MOM-M15-v1.1
Strategy ID
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone QRT-Solutions/seminario_2-public from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.
This repository provides a diverse collection of MetaTrader 5 expert advisors and utility scripts for automated trading. The primary logic focuses on managing pending orders through dynamic distance adjustments, time-scheduled trade execution, and sophisticated trailing stops that operate via price ticks or millisecond
MT5CollectionBreakoutIndicator crossoverTrend following
This repository contains a collection of MetaTrader 5 expert advisors designed for a quantitative trading seminar by QRT Solutions. It includes multiple models such as US opening gap momentum, opening range breakouts, and SMA-based gold strategies. Each robot features professional risk management components including t
This collection for MetaTrader 5 provides a diverse range of algorithmic trading strategies and utility scripts. The featured Precision Sniper EA utilizes indicator resonance, combining EMA, RSI, and ATR for entry signals. It incorporates sophisticated risk controls including three-stage partial profit taking, structur
This MetaTrader 5 repository provides a collection of expert advisors and visual dashboard tools centered on multi-timeframe technical analysis. It features strategies utilizing the Traders Dynamic Index, Exponential Moving Averages, and Commodity Channel Index indicators. The included tools range from trend-following
This repository features a diverse collection of expert advisors and trading utilities for MetaTrader 4 and MetaTrader 5. It includes automated robots based on trendline analysis, session breakouts, and technical indicator crossovers using MACD, RSI, and Williams Percent Range. The library provides various tools for ri
This repository provides a collection of Expert Advisors for MetaTrader 5 and Python trading scripts developed for an educational YouTube series. It features various technical indicator-based strategies, including MACD, Relative Strength Index, Stochastic, and Bollinger Bands. The included MQL5 files implement multi-ti
MT5CollectionIndicator crossoverMean reversionTrend following