Trading robot · MT5

OMNIX OCL

by OmniXRobo

OMNIX OCL is a MetaTrader 5 Expert Advisor designed for tick-driven scalping on XAUUSD (Gold).

GitHub stars1
Forks0
Last update2 weeks ago6 Nov 2026
LicenceNone stated

Overview

OMNIX OCL utilizes pending buy stop and sell stop bracket orders with configurable One-Cancels-the-Other (OCO) behavior, distance calculations, order modification policies, and exit profiles. The system incorporates volatility filters based on ATR, tick range, RSI, and ADX, alongside session and news filtering. Risk management features mandatory server-side stop loss controls, emergency stop variables, and strict demo-only safeguards without using grid or martingale lot escalation.

Details

Author

OmniXRobo on GitHub

Type

Trading robot

Markets

Gold

Timeframes

M1-M5

Risk Profile

No grid, martingale or hedging logic was found in its code or README. That says nothing about how it performs: backtest it first.

Input Parameters

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

NameTypeDefaultDescription
InpMagiclong20261104Magic number
InpSymbolOverridestringGold symbol override (empty = auto-discover)
InpStrategyTagstringbaselineStrategy label written to every trade row
InpDistModeENUM_OCL_DIST_MODEDIST_FIXEDEntry distance mode
InpOffsetFixeddouble0.95Fixed offset from Ask/Bid ($)
InpOffsetSpreadKdouble1.0Spread-scaled: offset = fixed + k*spread
InpOffsetAtrKdouble0.8ATR mode: offset = k*ATR(M1)
InpOffsetRangeKdouble0.6Tick-range mode: offset = k*range(window)
InpRangeWindowMsint30000Tick-range window (ms)
InpOffsetMindouble0.30Offset floor ($)
InpOffsetMaxdouble3.00Offset cap ($)
InpSLFixeddouble1.00Initial stop-loss distance ($)
Show all 40 inputs
NameTypeDefaultDescription
InpSLAtrKdouble0.00: SL = max(fixed, k*ATR(M1))
InpArmSidesENUM_OCL_ARM_SIDESARM_BOTHWhich sides to arm
InpPendingModeENUM_OCL_PENDING_MODEPEND_FOLLOW_MODIFYStatic / follow by modify / follow by replace
InpFollowDirENUM_OCL_FOLLOW_DIRFOLLOW_TIGHTEN_ONLYFollow direction
InpFollowStepdouble0.10Price drift that triggers a follow ($)
InpFollowMinMsint1000Min ms between follows of one order
InpFollowMaxPerMinint30Max follow requests per minute
InpPendingLifetimeSint300Cancel unfilled orders after (s), 0 = never
InpBrokerExpiryboolfalseAlso set broker-side expiry where supported
InpOcoModeENUM_OCL_OCO_MODEOCO_CANCEL_ON_FILLOpposite-order policy
InpStopBufferdouble0.02Extra $ beyond broker stop/freeze levels
InpRearmModeENUM_OCL_REARM_MODEREARM_SPREADRe-arm policy after a close
InpRearmCooldownSint0Minimum wait after a close (s)
InpRearmSpreadKdouble1.5Spread mode: spread <= k * average
InpRearmRangeMindouble0.40Volatility mode: min range in window ($)
InpRearmRangeMaxdouble6.00Volatility mode: max range in window ($)
InpMomentumWindowMsint5000Momentum window (ms)
InpMomentumMindouble0.30Momentum threshold ($ over window)
InpUseAtrFilterboolfalseUse ATR(M1) band
InpAtrMindouble0.30ATR(M1) min ($)
InpAtrMaxdouble6.00ATR(M1) max ($)
InpBlockExtremeRegimebooltrueDo not arm in extreme volatility regime
InpUseRsiFilterboolfalseUse RSI(M1) band
InpRsiLowdouble20RSI low
InpRsiHighdouble80RSI high
InpUseAdxFilterboolfalseUse ADX(M5) minimum
InpAdxMindouble18ADX min
InpExitProfileENUM_OCL_EXIT_PROFILEEXIT_B_TRAILExit variant A-F (Custom uses the switches below)

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone OmniXRobo/OMNIX-OCL 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, and any .mqh files into the Include folder the code expects.
  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

Nyao Scalper

by elrizwiraswara
214 stars

Nyao Scalper is an automated scalping robot for MetaTrader 5 that utilizes a multi-factor weighted scoring system to identify trade opportunities. It evaluates trend alignment through EMA crossovers, momentum via RSI, and price action through wick rejection and candle body analysis. The EA manages risk with adaptive AT

MT5 Trading robot ScalpingTrend followingMartingale High risk
Updated 4 weeks ago BSD-3-Clause GitHub repository of Nyao Scalper

Prop Firm EA Fleet

by cgemise971
26 stars

Prop Firm EA Fleet is a collection of MetaTrader 5 robots designed for passing prop firm evaluations and managing funded accounts. The suite utilizes various strategies including market structure analysis, session range breakouts for London and New York sessions, and high-frequency scalping. It features strict risk man

MT5 Trading robot SMC / ICT / price actionBreakoutScalping High risk
Updated 11 months ago None stated GitHub repository of Prop Firm EA Fleet
5 stars

Universal Market Hunter is an automated trading robot for MetaTrader 5 that targets Forex, gold, and cryptocurrency markets. It allows users to switch between two main strategies: a Bollinger Band volatility breakout and an engulfing price action pattern using volume confirmation. The system manages risk through ATR-ca

MT5 Trading robot BreakoutScalpingTrend following
Updated 1 year ago Apache-2.0 GitHub repository of Universal Market Hunter

High Frequency Scalper

by Pusparaj99op
5 stars

This MetaTrader 5 expert advisor is designed for scalping gold on the M1 timeframe. It features a versatile strategy engine capable of toggling between breakout and mean-reversion modes based on market conditions. The system manages trades using ATR-based trailing stops, break-even adjustments, and time-based exits. Ri

MT5 Trading robot ScalpingBreakoutMean reversion
4 stars

Gold SnR Momentum Scalper Pro is an automated scalping robot for MetaTrader 5, specifically optimized for XAUUSD on the M1 timeframe. It identifies entry points by combining support and resistance zones with RSI and moving average momentum. The system incorporates tick-level analysis to measure buying and selling press

MT5 Trading robot ScalpingBreakoutMean reversion
Updated 5 months ago Custom licence GitHub repository of Gold SnR Momentum Scalper Pro

Gold Scalper Bot

by bigthreeatone
3 stars

This MetaTrader 5 expert advisor is designed for aggressive trading on XAUUSD, focusing on the 5-minute and 15-minute timeframes. It utilizes Fibonacci retracements and swing high/low breakouts to identify entries across three selectable modes: scalp, swing, and trend following. The system manages up to three positions

MT5 Trading robot ScalpingBreakoutTrend following High risk
Updated 5 months ago None stated GitHub repository of Gold Scalper Bot

More gold EAs

Related on ForexR

Need a Broker for MT5?

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

Compare MT5 brokers