A detailed reference for every input of the Omni Gold MT5 EA. Each entry uses the label exactly as it appears in the EA's Inputs tab, followed by its default value and what it does.
Trend Regime Engine
Before any pending order is placed, the engine scores the market from 0 to 100 by blending five trend measures and works out a net direction:
- Market Structure — 30 points (Higher-High/Higher-Low vs Lower-High/Lower-Low)
- MA Slope — 20 points (EMA slope normalised by ATR)
- ADX — 20 points (trend strength)
- Kaufman Efficiency Ratio — 20 points (how directly price moved)
- ATR Expansion — 10 points (volatility opening up)
A pending order is allowed only when the score ≥ threshold and its direction agrees with the trade side (buy-stops in an uptrend, sell-stops in a downtrend). Everything is measured on the last closed bar, recomputed once per bar.
Enable Trend Regime Engine (default: true) — Master switch for the whole engine. When on, pending orders are gated by the trend score and direction. When off, the EA trades with no trend filter at all (original behaviour).
Min Trend Score (0-100) to allow pending order (default: 60) — The score threshold. At or above it the market is considered "trending enough" to trade; below it, no order is placed. Lower = more trades / less selective; higher = fewer trades but stronger trends. Typical range 55–70.
Print score/direction on each new bar (default: false) — Diagnostic switch. When on, the EA prints the total score, the net direction, and each component's points to the Experts/Journal log every new bar. Turn it on while tuning, off for live trading.
ADX Period (strength & direction) (default: 14) — Averaging period of the ADX indicator, used for both the trend-strength score and the +DI/−DI direction vote.
ADX where strength score = 0 pts (default: 15) — The ADX value at which the ADX component contributes zero points. Below this level ADX adds nothing to the score.
ADX where strength score = full pts (default: 40) — The ADX value at which the ADX component contributes its full 20 points. Between the floor and this value the points scale linearly.
ATR Period (slope norm & expansion) (default: 14) — Averaging period of the ATR indicator. ATR is used to normalise the MA slope and to measure volatility expansion.
Swing pivot strength (bars each side) (default: 3) — How many bars must be lower (for a swing high) or higher (for a swing low) on each side to confirm a pivot. Larger = fewer but more significant swings.
Bars to search swing highs/lows (default: 60) — How far back the engine looks to find the two most recent swing highs and lows used for the HH/HL vs LH/LL structure test.
EMA period for slope (default: 50) — Period of the EMA whose slope measures trend direction and steepness.
Slope measured over N bars (default: 10) — The look-back distance for the slope: current EMA minus EMA N bars ago. Larger = smoother, slower slope.
Slope (in ATR) that scores full (default: 1.0) — The slope size, expressed in ATR units, that earns the full 20 slope points. For example, 1.0 means "the EMA moving one full ATR over the slope window" is treated as maximum steepness.
Kaufman Efficiency Ratio lookback (default: 20) — Number of bars for the Efficiency Ratio, which measures how directly price travelled (net move ÷ total path). Near 1 = clean, efficient trend; near 0 = choppy.
ATR average period (expansion) (default: 50) — Baseline period for the average ATR. The current ATR is compared against this average to detect volatility expansion.
ATR ratio that scores full (default: 1.5) — The current-ATR ÷ average-ATR ratio that earns the full 10 expansion points. 1.5 means current volatility is 50% above its recent normal.
General
Trade Comment (default: OMNI GOLD MT5) — Text tag attached to every order the EA sends. Useful for identifying these trades in the terminal history and in broker reports. Cosmetic only.
Manage Open Position
Pending Expiration, in minutes (0=OFF) (default: 0) — Lifetime of a pending stop order. If it is not triggered within this many minutes it is deleted automatically. 0 = never expires.
Manage Lot and Money
Autolot Type (default: Fix lot Size) — How position size is decided. Options: Fix lot Size (use a fixed lot), Fix Money Size (size derived from a fixed money amount), Risk Per Trade (size from a percentage of the account).
Fixed Money size (default: 100) — The money amount used to size the trade when Autolot Type = Fix Money Size.
Fixed Lot size (default: 0.01) — The lot used when Autolot Type = Fix lot Size.
Risk Per Trade % (default: 10) — Percentage of the account used to size the trade when Autolot Type = Risk Per Trade.
Maximal Lots (default: 100) — Hard cap on lot size. The computed lot is never allowed above this value.
Manage SL-TP Settings
SLTP Type (default: ECN SLTP) — How stop-loss and take-profit are applied. Options: FIXED SLTP (attached directly to the order), Virtual SLTP (managed internally by the EA, not visible to the broker), ECN SLTP (order is sent first and SL/TP added right after the fill — required by many ECN brokers).
Stop Loss(in pips) (default: 50) — Stop-loss distance in pips. 0 = no stop loss.
Take Profit(in pips) (default: 500) — Take-profit distance in pips. 0 = no take profit.
Manage Trailing
Trailing (default: true) — Enable the trailing stop.
Trailing Type (default: Trailing Money) — Trailing method. Options: Trailing in pips (classic price-distance trailing, using the two pip values below) or Trailing Money (trails on floating profit in account currency, using the Manage Trailing Money values).
Trailing Start, in pips (default: 25) — Profit in pips required before the trailing stop activates (pips mode).
Trailing Step, in pips (default: 5) — Minimum pip move before the trailing stop is advanced (pips mode).
Manage Trailing Money
Trailstart in money (default: 1.0) — Floating profit (account currency) at which money-based trailing begins.
Trailstep in money (default: 0.1) — The money increment by which the money-based trailing lock advances.
Manage Break Even
Break Even (default: true) — Enable moving the stop to break-even once in profit.
Break Even Type (default: Lock Money) — Break-even mode. Options: Break Even Pips (trigger and lock measured in pips) or Lock Money (trigger and lock measured in account currency, using the Manage Lock Money values).
Break Even Start, in pips (default: 15) — Profit in pips required before the stop is moved to break-even (pips mode).
Break Even Step, in pips (default: 5) — Pips of profit locked in beyond entry when break-even triggers (pips mode).
Manage Lock Money
Lock start in money (default: 0.5) — Floating profit (account currency) at which the break-even / lock triggers (money mode).
Lock stop in money (default: 0.1) — Profit in account currency locked in when the money lock triggers.
Time Management
Time control (default: false) — Restrict trading to a daily time window. When off, the EA trades around the clock.
Trade Start Time (default: 01:00) — Start of the daily trading window (server time).
Trade End Time (default: 23:00) — End of the daily trading window (server time). If start > end the window runs overnight.
Trade in Monday (default: true) — Allow new trades on Monday. Uncheck to skip the day.
Trade in Tuesday (default: true) — Allow new trades on Tuesday.
Trade in Wednesday (default: true) — Allow new trades on Wednesday.
Trade in Thursday (default: true) — Allow new trades on Thursday.
Trade in Friday (default: true) — Allow new trades on Friday.
Close All Trades at The End of Time (default: false) — When on, all open positions and pending orders are closed as the daily trading window ends.
News Filter
News Filter (default: false) — Pause trading around scheduled economic news events.
Stop trade X seconds before the news. (default: 3600) — How long before a news event to stop opening trades. 3600 = 1 hour.
Stop trade X seconds after the news. (default: 3600) — How long after a news event to keep trading paused. 3600 = 1 hour.
Manage Others
Delete All Pending Orders if Spread>MaxSpread (default: false) — When on, existing pending orders are removed whenever the spread exceeds Max Spread, avoiding fills in poor conditions.
Max Spread (in Pips) (default: 5) — Maximum spread allowed to place or keep orders.
Max Slippage (in Pips) (default: 3) — Maximum execution slippage tolerated on an order.
Magic number (default: 8055) — Unique ID that tags this EA's orders so they are never confused with manual trades or other EAs. Give each chart/instance its own value.
Tuning tips
- First run: set Print score/direction on each new bar = true and watch the Experts log to see how the score behaves on your symbol and timeframe. This tells you whether 60 is the right threshold.
- Too few trades: lower Min Trend Score (e.g. 55), or lower ADX where strength score = full pts, or shorten EMA period for slope.
- Too many weak trades: raise Min Trend Score (e.g. 65–70) or raise Swing pivot strength so only cleaner structures qualify.
- XAUUSD breakout: backtest Min Trend Score at 55 / 60 / 65 and compare — gold trends hard but also whips, so the threshold matters most here.


