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.
Tick-driven stop-bracket order placement
Configurable OCO and order-following logic
Multi-indicator volatility filters using ATR, RSI, and ADX
Multiple exit profiles and trailing stop variants
Strict demo-account lock and emergency stop switches
Read from OMNIX_OCL.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpMagic
long
20261104
Magic number
InpSymbolOverride
string
Gold symbol override (empty = auto-discover)
InpStrategyTag
string
baseline
Strategy label written to every trade row
InpDistMode
ENUM_OCL_DIST_MODE
DIST_FIXED
Entry distance mode
InpOffsetFixed
double
0.95
Fixed offset from Ask/Bid ($)
InpOffsetSpreadK
double
1.0
Spread-scaled: offset = fixed + k*spread
InpOffsetAtrK
double
0.8
ATR mode: offset = k*ATR(M1)
InpOffsetRangeK
double
0.6
Tick-range mode: offset = k*range(window)
InpRangeWindowMs
int
30000
Tick-range window (ms)
InpOffsetMin
double
0.30
Offset floor ($)
InpOffsetMax
double
3.00
Offset cap ($)
InpSLFixed
double
1.00
Initial stop-loss distance ($)
Show all 40 inputs
Name
Type
Default
Description
InpSLAtrK
double
0.0
0: SL = max(fixed, k*ATR(M1))
InpArmSides
ENUM_OCL_ARM_SIDES
ARM_BOTH
Which sides to arm
InpPendingMode
ENUM_OCL_PENDING_MODE
PEND_FOLLOW_MODIFY
Static / follow by modify / follow by replace
InpFollowDir
ENUM_OCL_FOLLOW_DIR
FOLLOW_TIGHTEN_ONLY
Follow direction
InpFollowStep
double
0.10
Price drift that triggers a follow ($)
InpFollowMinMs
int
1000
Min ms between follows of one order
InpFollowMaxPerMin
int
30
Max follow requests per minute
InpPendingLifetimeS
int
300
Cancel unfilled orders after (s), 0 = never
InpBrokerExpiry
bool
false
Also set broker-side expiry where supported
InpOcoMode
ENUM_OCL_OCO_MODE
OCO_CANCEL_ON_FILL
Opposite-order policy
InpStopBuffer
double
0.02
Extra $ beyond broker stop/freeze levels
InpRearmMode
ENUM_OCL_REARM_MODE
REARM_SPREAD
Re-arm policy after a close
InpRearmCooldownS
int
0
Minimum wait after a close (s)
InpRearmSpreadK
double
1.5
Spread mode: spread <= k * average
InpRearmRangeMin
double
0.40
Volatility mode: min range in window ($)
InpRearmRangeMax
double
6.00
Volatility mode: max range in window ($)
InpMomentumWindowMs
int
5000
Momentum window (ms)
InpMomentumMin
double
0.30
Momentum threshold ($ over window)
InpUseAtrFilter
bool
false
Use ATR(M1) band
InpAtrMin
double
0.30
ATR(M1) min ($)
InpAtrMax
double
6.00
ATR(M1) max ($)
InpBlockExtremeRegime
bool
true
Do not arm in extreme volatility regime
InpUseRsiFilter
bool
false
Use RSI(M1) band
InpRsiLow
double
20
RSI low
InpRsiHigh
double
80
RSI high
InpUseAdxFilter
bool
false
Use ADX(M5) minimum
InpAdxMin
double
18
ADX min
InpExitProfile
ENUM_OCL_EXIT_PROFILE
EXIT_B_TRAIL
Exit variant A-F (Custom uses the switches below)
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone OmniXRobo/OMNIX-OCL 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, and any .mqh files into the Include folder the code expects.
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.
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
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
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
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
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
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