Blog / Strategy
Strategy

Thrust Imbalance Rebound Hedge

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 Thrust Imbalance Rebound Hedge is a pure price-action strategy for MetaTrader 5 that trades the Fair Value Gap (FVG) — a three-candle imbalance left behind when a strong momentum candle moves price so quickly that it skips over a zone, leaving an untraded "gap" between the first and third candles. Rather than relying on moving averages, oscillators, or any external technical indicator, this strategy reads the market directly from raw candle highs, lows, opens, and closes. That makes it a useful teaching example of how institutional price-action and Smart Money Concepts (SMC) ideas can be expressed in code without a single indicator on the chart.

The strategy is designed for trending or impulsive market conditions where a decisive "thrust" candle signals genuine momentum. A thrust is a candle whose real body dominates its own high-to-low range, indicating conviction rather than indecision. When that thrust carves out a clean gap, the strategy treats the gap as a magnet that price often revisits before continuing — a behavior commonly described as a rebound or continuation entry. It then waits for price to dip back into the fresh gap and close in the thrust's direction before entering.

This system is best suited to intermediate learners who already understand basic candlestick anatomy and want to study how imbalance trading, structure-based stops, and an automated hedging mechanism fit together. It is framed here as a strategy analysis — a way to learn how the logic behaves — not as a profit opportunity. As with any approach, the Thrust Imbalance Rebound Hedge has conditions where it reads price well and conditions where it struggles, both of which we cover below.

How It Works

The strategy evaluates one fully-closed bar at a time and tracks a single imbalance at any given moment. Here is the logic in plain English:

Fair Value Gap MT5 strategy
Illustrative example of the strategy’s entry and exit logic — not real trading results.

Strategy Parameters

Parameter Default Min Max Description
Lots 0.10 0.01 1.0 Fixed trade volume in lots for each leg, primary and hedge.
ThrustBodyFraction 0.55 0.30 0.90 Minimum body-to-range ratio for the middle candle to qualify as a decisive thrust. Higher values demand stronger impulses.
MinGapFactor 0.25 0.00 1.50 Minimum gap height as a multiple of average bar range. Higher values ignore small gaps formed in chop.
TakeProfitRR 2.00 1.0 5.0 Reward-to-risk multiple for the take-profit target relative to the stop distance.
StopBufferMult 0.30 0.0 1.5 Extra buffer added beyond structure for the stop-loss, as a multiple of average range.
ExpiryBars 15 3 50 Number of bars an untapped gap remains valid before it is discarded.
RangeLookback 14 5 50 Number of bars used to compute the average high-low range yardstick.
EnableHedge 1 0 1 Toggles the inversion hedge leg on (1) or off (0).

Note that a Magic number input (default 9200) identifies the primary leg, and the hedge leg uses Magic + 1 so the two can be managed independently.

Fair Value Gap MT5 strategy — MQL5 source code

Recommended Chart Settings

The Thrust Imbalance Rebound Hedge was designed as a general price-action engine and is not hard-wired to a single instrument. Because it scales its gap and stop logic to each market's own average range, it can be studied across major forex pairs such as EUR/USD or GBP/USD, as well as on indices and metals where clean impulse moves are common.

A practical starting point for study is the M15 or H1 timeframe, which tends to produce more reliable thrust candles and fewer false gaps than very low timeframes. Lower timeframes generate more frequent signals but also more noise, while higher timeframes produce fewer, larger setups. Whatever you choose, remember that results will vary considerably across different symbols, sessions, and market conditions — what reads well in a trending environment may behave very differently in a range. Always study the behavior on a demo account before drawing conclusions.

How to Install on MetaTrader 5

What to Consider Before Using This EA

Like every approach, the Thrust Imbalance Rebound Hedge has genuine strengths and real limitations worth understanding before you study it on live conditions.

Strengths. Because it uses no indicators, there is no repainting, no lag from smoothing, and the logic is fully transparent — you can see exactly which candles created a setup. The structure-based stops anchor risk to meaningful price levels rather than arbitrary pip counts, and the fixed reward-to-risk target enforces discipline. The inversion hedge is a thoughtful touch: a failed gap is reframed as the next opportunity rather than simply a loss.

Limitations. Fair Value Gap strategies historically perform best in trending, impulsive markets and tend to struggle in tight ranges, where gaps are small and price chops back and forth through them. In those conditions the inversion hedge can also whipsaw, opening an opposite leg only for price to reverse again. The strategy tracks just one imbalance at a time, so it may miss overlapping setups during fast moves. It also uses a fixed lot size, meaning risk per trade varies with the stop distance unless you adjust position sizing manually. As always, the strategy signals setups — it does not predict outcomes, and any edge it may indicate must be validated across many trades, not a handful.

Risk Management Tips

Sound risk management matters more than any single entry signal. Consider these general principles as you study this EA:

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

← Back to Blog