Trading robot · MT5

Omega X EA

by Trio707

Omega X EA is a MetaTrader 5 expert advisor that implements a one-sided grid martingale strategy on hedging accounts.

High risk

GitHub stars1
Forks0
Last update9 days ago17 Oct 2026
LicenceNone stated

Overview

Omega X EA enters trades via simultaneous BuyStop and SellStop pending orders using a straddle range gate. Once one position fills, the EA locks direction and adds levels on the same side with lot scaling. It exits using a dynamic basket take-profit computed from total lots and money target, with broker-side server TP as default. Risk controls include equity stop, daily loss limit, profit cap, spread filter, session filter, blackout windows, and hard caps on lots and levels.

Details

Author

Trio707 on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Grid, Martingale

Markets

Any symbol

Timeframes

Any timeframe

Risk Profile

  • Uses martingale lot scaling: losses can grow fast
  • Opens a grid of orders: exposure builds up in a trend

EA Files

Input Parameters

Read from Omega_X_EA.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
DecisionTimeframeENUM_TIMEFRAMESPERIOD_CURRENTtimeframe for all EA decisions (data, bars, ATR)
SpacingModeENUM_SPACING_MODESPACING_FIXED
GridStepPointsdouble300FIXED: distance between levels in points
ATRPeriodint14ATR mode: period
ATRMultiplierdouble1.5ATR mode: step = ATR * this (frozen at level 1)
SpacingBasePointsdouble300MULTIPLICATIVE: base step in points
SpacingMultiplierdouble1.5MULTIPLICATIVE: step_n = base * mult^(n-1)
BaseLotdouble0.01level 1 volume
LotMultiplierdouble1.5lot_n = BaseLot * LotMultiplier^(n-1)
MaxLotSizedouble10.0hard cap per order
MaxGridLevelsint10hard cap on open trades in one grid
LotRoundingModeENUM_LOT_ROUNDINGLOT_ROUND_FLOORstep rounding: floor or nearest
Show all 40 inputs
NameTypeDefaultDescription
MoneyPerLotTPdouble10.0basket TP = TotalLots * this (account currency)
UseTPDecayboolfalseshrink TP with depth
TPDecayFactordouble0.95applied as factor^(levels-1)
UsePartialCloseboolfalseclose oldest profitable trade at X% of target
PartialCloseRatiodouble0.80..1
UseServerSideBasketTPbooltruePlace computed TP on all basket orders (crash safety net)
BasketTPSafetyFactordouble1.0Server TP is this multiple of the code target (>= 1.0)
UseProfitMoneyCapboolfalsehalt the EA once realized balance grew by the cap
ProfitMoneyCapdouble100.0account-currency growth from the balance at EA start
MaxTotalLotsdouble5.0hard cap on summed grid lots
EquityStopPercentdouble30.0close all + halt if equity drops this % from start of day
DailyLossPercentdouble10.0close all + pause until next server day
MaxSpreadPointsint50do not arm / add above this spread
UseSessionFilterboolfalse
SessionStartHourint0server time, inclusive
SessionEndHourint24server time, exclusive
PreBlackoutBufferMinutesint30stop new trades this many minutes before a blackout
UseBlackout1boolfalse
Blackout1StartHourint230..23 server time
Blackout1StartMinint00..59
Blackout1EndHourint20..23 server time
Blackout1EndMinint00..59
UseBlackout2boolfalse
Blackout2StartHourint00..23 server time
Blackout2StartMinint00..59
Blackout2EndHourint00..23 server time
Blackout2EndMinint00..59
UseBlackout3boolfalse

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone Trio707/Omega-X from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
  3. 3Copy the filesCopy the .mq5 file into Experts.
  4. 4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
  5. 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.

Similar Expert Advisors

RSI Martingale EA

by peefpee
10 stars

This Expert Advisor for MetaTrader 5 implements a martingale trading strategy triggered by the Relative Strength Index (RSI). It opens an initial position when RSI reaches overbought or oversold thresholds. If price continues to move against the initial trade, the EA layers additional orders at set point intervals, mul

MT5 Trading robot MartingaleMean reversionGrid High risk

Smart Grid Martingale EA

by chenhengyi53-design
9 stars

This MetaTrader 5 expert advisor executes a grid trading strategy enhanced with martingale lot scaling. The system identifies market direction through multi-timeframe analysis using Exponential Moving Averages and the Average Directional Index. It features dynamic grid spacing that adjusts based on market volatility an

MT5 Trading robot GridMartingaleTrend following High risk
Updated 8 months ago None stated GitHub repository of Smart Grid Martingale EA
7 stars

This MetaTrader 5 expert advisor executes a mean reversion strategy based on price deviation from a Simple Moving Average. It enters short positions when prices rise above the average and long positions when prices fall below. The algorithm utilizes an aggressive grid-based recovery system where both the entry distance

MT5 Trading robot Mean reversionMartingaleGrid High risk
6 stars

This high-frequency scalping robot for MetaTrader 5 is specifically designed for the gold market. It determines entry points using a combination of EMA trend filters, ADX trend strength, and dynamic RSI levels. To recover from losing positions, the EA utilizes an aggressive martingale grid system with a customizable lo

MT5 Trading robot ScalpingMartingaleGrid High risk

Currency Strength EA

by drdz9876
6 stars

This MetaTrader 5 expert advisor utilizes a multicurrency strength system to identify trading opportunities by comparing relative currency values. It calculates strength based on a configurable lookback period, typically using H4 data, and includes triangular weighting and smoothing options. The robot manages exits usi

MT5 Trading robot MartingaleMulti-strategyGrid High risk
Updated 4 years ago GPL-3.0 GitHub repository of Currency Strength EA
5 stars

This MetaTrader 5 expert advisor is designed for gold trading using a combined martingale and grid approach. It uses a moving average crossover filter to determine initial entry direction. If the market moves against the position, the EA opens additional trades at fixed intervals, increasing the lot size via a multipli

MT5 Trading robot MartingaleGridIndicator crossover High risk
Updated 11 months ago None stated GitHub repository of XAUUSD Martingale Grid

More trading robots

Need a Broker for MT5?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers