Blog / Strategy
Strategy

Star Pattern Reversal

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 Star Pattern Reversal is a candlestick-pattern, mean-reversion trading strategy that automates two of the most recognised three-candle reversal formations in technical analysis: the Morning Star (a bullish reversal) and the Evening Star (a bearish reversal). A "candlestick pattern" is simply a shape formed by the open, high, low, and close prices of one or more bars on a chart, and the star family is among the most widely studied exhaustion signals in price action.

What makes this particular implementation distinct is that it does not act on a star pattern in isolation. It adds a second layer of confluence — support and resistance — by demanding that the middle "star" candle prints at a fresh swing extreme. In plain terms, the strategy only fades a move when the market has stalled at a meaningful price level it has recently tested, rather than somewhere in the middle of a range. Support is a price floor where buying interest has historically appeared; resistance is a ceiling where selling pressure has tended to emerge. Requiring the pattern to occur at one of these levels is intended to filter out the many star-shaped candles that form mid-range, which is where a large share of false reversals tend to occur.

As a learning tool, this strategy is well suited to traders who want to understand how classic candlestick reversals can be made more selective through location-based filtering. It is a reversal/counter-trend approach by design, so it is best studied by those interested in fading exhaustion rather than following momentum. It is not a "set and forget" money machine — it is a structured framework for studying how pattern recognition, swing-extreme detection, and volatility-based risk sizing can be combined into a single rule set.

How It Works

The strategy evaluates the market once per completed bar. It inspects the three most recently closed candles — the lead candle (c1), the star candle (c2), and the confirmation candle (c3) — and compares them against a window of prior bars that defines both the average candle size and the recent swing extremes.

Entry conditions — Morning Star (long signal):

Entry conditions — Evening Star (short signal):

Stop-loss logic:

Take-profit logic:

Trade management:

Star Pattern Reversal MT5 EA
Illustrative example of the strategy’s entry and exit logic — not real trading results.

Strategy Parameters

Parameter Default Min Max Description
StarBodyFactor 0.50 0.20 0.80 Maximum size of the middle "star" candle's body relative to the leading impulse candle's body. Lower values demand a smaller, more decisive indecision candle.
ImpulseBodyFactor 1.00 0.50 2.00 Minimum body size of the lead and confirmation candles, expressed as a multiple of the average body over the lookback window. Higher values require stronger impulse candles.
ExtremeLookback 20 5 50 Number of prior bars used to define the swing extreme (support/resistance) the star must reach, and to compute the average candle body.
AtrPeriod 14 5 30 The Average True Range period used purely to size the protective-stop buffer.
SlAtrBuffer 0.50 0.00 2.00 Extra room placed beyond the pattern's extreme, expressed in ATR multiples. Larger values give the stop more breathing space.
RewardRisk 2.00 1.00 4.00 Take-profit distance as a multiple of the measured risk (the structural R-multiple).
Lots 0.10 0.01 1.00 The trade volume in lots used for each position.
Star Pattern Reversal MT5 EA — MQL5 source code

Recommended Chart Settings

The Star Pattern Reversal strategy was designed to be applied to a single symbol and timeframe at a time. Because it is a reversal approach that relies on clean, readable candlestick structure and identifiable swing extremes, it is generally studied on liquid instruments such as major forex pairs (for example, EUR/USD) on intraday-to-swing timeframes such as the H1 (1-hour) or H4 (4-hour) charts, where candle bodies tend to be more meaningful and noise is reduced relative to very low timeframes.

That said, no single setting is universally optimal. The behaviour of candlestick patterns and swing extremes varies considerably across instruments, sessions, and volatility regimes. Results will vary across different market conditions, and any chosen symbol or timeframe should be studied and tested thoroughly before drawing conclusions about how the strategy behaves.

How to Install on MetaTrader 5

What to Consider Before Using This EA

Like any strategy, the Star Pattern Reversal has both strengths and limitations that are worth understanding before you study it on live or demo data.

Strengths of this approach:

Known limitations:

The goal of studying this EA is to understand how and when candlestick reversals at key levels tend to behave — not to assume any particular outcome.

Risk Management Tips

Sound risk management is what separates disciplined study from gambling. Whatever strategy you explore, the following general principles apply:

Risk management is a skill in its own right, and it is at least as important as the entry logic itself.

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