Blog / Strategy
Strategy

Supply Demand 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 Supply Demand Rebound Hedge is a pure price-action expert advisor (EA) for MetaTrader 5 that trades structural supply and demand zones using candlestick wick-rejection patterns — without any technical indicators. Instead of relying on moving averages, RSI, or ATR, it reads raw market structure: the rolling swing high of the recent range becomes the supply (resistance) zone, and the rolling swing low becomes the demand (support) zone. The "rebound" in its name refers to the way it waits for price to test one of these zones and then bounce off it, confirmed by a long rejection wick, before entering a trade against the test.

This is a mean-reversion style approach, designed for ranging or consolidating markets where price repeatedly oscillates between a floor and a ceiling. When price probes the demand floor and snaps back up with a long lower wick, the strategy reads that as buyers defending the level and signals a long. When price probes the supply ceiling and snaps back down with a long upper wick, it reads that as sellers defending the level and signals a short. The "hedge" component is a defensive layer that opens a single opposite-direction position if the original trade moves adversely, aiming to limit the net loss if the zone ultimately breaks.

As a learning tool, this EA is well suited to traders who want to study how support and resistance, candlestick rejection (pin bar) patterns, and basic hedging logic can be expressed in code. Because it uses no indicators, it is a clear, readable example of how structural price-action concepts translate into mechanical entry and exit rules. It is best viewed as a strategy to analyze and understand, not as a shortcut to results.

How It Works

The strategy evaluates a new setup only when a candle closes, and it manages an open trade on every tick. Here is the logic in plain English:

supply demand rebound hedge EA
Illustrative example of the strategy’s entry and exit logic — not real trading results.

Strategy Parameters

Parameter Default Min Max Description
Lookback 20 8 60 Number of recent candles used to map the swing high (supply) and swing low (demand) zones.
WickRatio 0.55 0.40 0.80 Minimum size of the rejection wick as a fraction of the candle's total range; higher values demand a more pronounced rejection.
ZoneTolerance 0.15 0.05 0.40 How deep into the zone (as a fraction of the range between support and resistance) a candle may reach and still count as a valid test.
RewardRatio 2.0 1.0 4.0 Take-profit distance expressed as a multiple of the stop-loss distance (the risk).
HedgeTrigger 0.65 0.40 0.90 Fraction of the distance from entry toward the stop at which the single opposite-direction hedge is opened.
Lots 0.10 0.01 1.0 Fixed trade volume in lots for both the primary position and the hedge.
supply demand rebound hedge EA — MQL5 source code

Recommended Chart Settings

The Supply Demand Rebound Hedge was designed as a structural price-action strategy, which makes it most coherent on the higher intraday timeframes — for example the H1 (1-hour) or M30 (30-minute) charts — where swing highs and lows form clearer, more reliable supply and demand zones. Major forex pairs with steady liquidity and tighter spreads, such as EUR/USD or GBP/USD, are a sensible starting point for study because their ranging behavior tends to respect structure.

Because the strategy is built around range and mean-reversion behavior, its character will change significantly across different market conditions. Results will vary between trending and ranging environments, across symbols with different volatility profiles, and across brokers with different spreads and execution. Treat any chart and timeframe combination as a starting point for your own testing rather than a fixed recommendation, and always validate behavior on a demo account first.

How to Install on MetaTrader 5

What to Consider Before Using This EA

The main strength of this approach is its transparency. Because it uses no indicators, every decision traces back to a clearly defined structural rule — the swing high, the swing low, the wick proportion, and the close direction. That makes it an excellent example for studying how support and resistance trading and candlestick rejection patterns can be mechanized. The structure-based stop also keeps each trade's risk tied to the actual rejection candle rather than an arbitrary fixed distance.

There are, however, important limitations to understand. Mean-reversion strategies that fade tested zones historically struggle in strong trending markets, where a "rejection" can be a brief pause before price continues straight through the level. In those conditions the zone breaks, the primary is stopped, and the strategy relies entirely on the hedge to soften the outcome. The hedging logic itself is not a guarantee against loss — it is a structured attempt to cap downside, and in fast or gapping markets the hedge may fill at a worse price than intended, or the sequence of reclaim-and-break can still produce a combined loss.

A few other points worth weighing:

The honest summary is that this EA is a thoughtful, well-structured implementation of a recognizable price-action idea — neither a flawless system nor a poor one. Its value is greatest as something to study, test, and adjust.

Risk Management Tips

Sound risk management matters more than any single entry rule. As a general educational guideline, many experienced traders limit the risk on any one trade to roughly 1–2% of account equity, and the fixed-lot default here should be reviewed against your own balance before live use. Consider these principles:

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