Disclaimer: This article is for educational and informational purposes only. It does not constitute financial or investment advice. Trading forex and CFDs carries significant risk of loss. Past performance of any strategy — including backtests — does not guarantee future results. Never trade with money you cannot afford to lose.
What Is This Strategy?
The Omega Ratio Trend Pullback is a trend-following, pullback-continuation strategy built around the Omega ratio, a probability-weighted gain-versus-loss measure introduced by Keating and Shadwick in 2002. Rather than judging momentum by a single net move, the Omega ratio compares the total area of positive bar returns against the total area of negative bar returns over a chosen lookback window. When you set the reference threshold at zero, it simplifies to the sum of up-moves divided by the sum of down-moves. A reading well above 1 describes a demand-heavy tape where gains have dominated in aggregate magnitude; a reading well below 1 describes the opposite.
Used on a single instrument, this becomes a conviction gauge for the recent market regime. The core idea behind the strategy is that trend continuation tends to pay off most reliably when one side of the order flow has been decisively in control. So the strategy only looks for trades that align with a clearly skewed Omega regime, then waits for a specific, low-chase entry: the first shallow counter-trend dip (or pop) that price immediately rejects and reclaims. This avoids buying an already-extended breakout and instead targets the resumption bar right after a brief pause.
As a learning tool, this strategy suits traders who want to study how a portfolio-style risk statistic can be repurposed as a trend and conviction filter on raw candle data. It is designed for trending conditions on liquid instruments — a forex major, a metal like gold, or a stock index — typically viewed on intraday-to-swing timeframes such as M30 through H4. It is best treated as a framework for understanding regime-gated pullback entries, not as a shortcut to results.
How It Works
The strategy evaluates its logic once per freshly-closed bar, so signals are based on completed candles rather than the still-forming bar. Three independent conditions must agree before it acts.
Regime filter (the Omega ratio):
- The strategy sums all positive bar-to-bar close changes and all negative changes over the
OmegaWindowlookback. - Omega equals the total gain area divided by the total loss area.
- A bull regime requires Omega to be at least
1 + OmegaMargin; a bear regime requires Omega to be at most1 / (1 + OmegaMargin). This margin creates a neutral dead-zone that filters out indecisive markets.
Trend filter (two baselines):
- A
FastMaand aSlowMasimple moving average are computed from closing prices as trend references. - An up-trend requires the last closed price to be above the slow baseline and the fast baseline to be above the slow baseline.
- A down-trend is the mirror image.
Trigger (the pullback reclaim):
- For a long, the strategy signals when the prior bar was a genuine counter-trend down bar (a dip), and the just-closed bar is bullish, closes back above that dip's high, and closes above the fast baseline — a reclaim.
- For a short, the prior bar must be an up bar (a pop), and the just-closed bar must be bearish, close back below that pop's low, and close below the fast baseline.
Entry:
- A long is opened at the ask price; a short is opened at the bid price.
- Before entering, the strategy skips the trade if the current spread is wider than
MaxSpreadpoints (unless the filter is switched off).
Stop-loss and take-profit logic:
- Volatility is measured with a self-contained ATR (Average True Range), calculated as a simple mean of true range over
AtrPeriodbars. - The stop-loss is placed
AtrStopMult× ATR away from entry. - The take-profit is set at
RewardRisk× the stop distance, defining the reward-to-risk multiple.
Exit logic:
- The ATR stop and ATR-based target manage the open trade under normal conditions.
- There is also an early regime exit: if the Omega ratio flips to the opposite side while a trade is open, the original thesis is considered invalid, and the position is closed to step aside.
- Only one position per magic number is held at a time.

Strategy Parameters
| Parameter | Default | Min | Max | Description |
|---|---|---|---|---|
| OmegaWindow | 30 | 10 | 120 | Lookback in bars for the Omega gain/loss area ratio. |
| OmegaMargin | 0.25 | 0.00 | 1.50 | Regime margin; a bull needs Omega ≥ 1 + margin, a bear needs Omega ≤ 1 / (1 + margin). |
| FastMa | 10 | 3 | 40 | Fast baseline the reclaim entry must clear. |
| SlowMa | 45 | 20 | 150 | Slow baseline defining the higher-order trend side. |
| AtrPeriod | 14 | 5 | 40 | ATR lookback for volatility-scaled stops. |
| AtrStopMult | 2.0 | 0.5 | 6.0 | Stop distance as a multiple of ATR. |
| RewardRisk | 1.6 | 0.5 | 5.0 | Take-profit as a reward-to-risk multiple of the stop distance. |
| MaxSpread | 30 | 0 | 200 | Skip entries when the spread is wider than this in points; 0 disables the filter. |
| Lots | 0.10 | 0.01 | 1.0 | Order volume in lots. |

Recommended Chart Settings
This strategy was designed with trending instruments in mind — a forex major, a metal such as gold, or a stock index — viewed on intraday-to-swing timeframes, typically M30, H1, or H4. Because every calculation (returns, baselines, and ATR) is read directly from raw candles on the chart's timeframe, the strategy adapts to whatever period it is attached to during a backtest.
Keep in mind that no single symbol or timeframe is universally optimal. Results will vary substantially across different instruments, market regimes, and broker conditions. Ranging or choppy markets, in particular, tend to be less favorable for a continuation approach than sustained trends. Always study the behavior across several settings before drawing conclusions.
How to Install on MetaTrader 5
- Download the .ex5 file from the link below
- Copy it to your MT5
MQL5\Expertsfolder - Restart MetaTrader 5 or refresh the Navigator panel
- Drag the EA onto a chart matching the recommended symbol and timeframe
- Configure the input parameters and enable Algo Trading
What to Consider Before Using This EA
The strengths of this approach lie in its discipline. By requiring a decisively skewed Omega regime and a two-baseline trend agreement and a specific reclaim trigger, the strategy avoids many low-conviction entries and chases fewer extended moves. The Omega ratio itself is a thoughtful conviction measure because it weighs the full magnitude of gains and losses rather than just their count or a single net figure. The built-in regime exit adds a layer of risk control by stepping aside when the underlying thesis changes.
There are also well-known limitations to be aware of. Like all trend-following logic, this strategy can suffer during range-bound or whipsaw conditions, where pullback reclaims fail repeatedly and stops are hit. The Omega ratio is a lagging, backward-looking statistic — a strong past regime does not guarantee the trend will continue, and sharp reversals can catch the filter offside. The simple moving averages introduce lag, so entries may arrive after a portion of the move has already occurred. A fixed reward-to-risk target means some winning trends are cut short before they fully mature. Finally, wider spreads, slippage, and news volatility can degrade fills; the MaxSpread filter helps but does not eliminate execution risk. Treat this EA as a structured framework to study, and expect its behavior to differ meaningfully across market conditions.
Risk Management Tips
Sound risk management matters far more than any single entry signal. Consider these general principles as part of your education:
- Position sizing: Size each trade so that a stop-out represents only a small fraction of your account. A common guideline is risking no more than 1–2% of capital per trade.
- Test on a demo account first: Run the strategy on a demo or simulated account until you understand its typical trade frequency, drawdown, and behavior in different regimes.
- Understand drawdown: Even a well-designed strategy will experience losing streaks. Know the historical peak-to-trough drawdown you might endure and confirm you could tolerate it emotionally and financially.
- Respect the stop: The ATR-based stop exists to define risk on every trade. Avoid the temptation to widen or remove it.
- Diversify and avoid over-leverage: Concentrating too much capital or leverage in one instrument or one strategy magnifies the impact of any single adverse move.
- Keep records: Journaling entries, exits, and the market context helps you evaluate whether the strategy fits your goals and temperament.
Risk Warning
Trading foreign exchange, CFDs, and other leveraged financial instruments involves substantial risk of loss and is not suitable for all investors. The strategies and tools discussed on this page are provided for educational purposes only and do not constitute financial advice, investment recommendations, or solicitation to trade. Always consult a qualified financial adviser before making trading decisions. Past backtest performance is not indicative of future results.
Downloads
- Expert Advisor: OmegaRatioTrendPullback.ex5 (32 downloads)
- Source Code: OmegaRatioTrendPullback.mq5 (32 downloads)
- Documentation: OmegaRatioTrendPullback.pdf (41 downloads)