Blog / Strategy
Strategy

Closing Bias Persistence Trend

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 Closing Bias Persistence Trend is a pure price-action, trend-following strategy for MetaTrader 5 built around a single, underused idea: where each candle closes inside its own range. That location is measured by the Close Location Value (CLV) — a classic price-action statistic defined as (2 × Close − High − Low) / (High − Low), which always sits between −1 and +1. A reading of +1 means the bar closed exactly on its high (buyers finished in control), −1 means it closed on its low (sellers in control), and 0 marks a close at the midpoint of the range.

What makes this approach distinct is that CLV uses only the High, Low, and Close of each bar. It ignores the open entirely, so it is not the same as candle-body flow (Close − Open), and it needs no volume data, so it is not a money-flow indicator. Instead, it reads the "footprint" of who defended each bar's extreme. The strategy smooths this raw closing bias with an exponential moving average (EMA) to build a pressure line, then only acts when that pressure becomes persistent — not on a single noisy reversal bar. A slower moving-average trend gate keeps entries aligned with the prevailing drift.

As a learning tool, this strategy is well suited to traders who want to study how intrabar closing behavior can be turned into a systematic, rules-based signal. It is designed for trending market conditions and is intended to help you understand persistence filtering, conviction thresholds, and volatility-based risk placement — not as a shortcut to any particular outcome. Every rule is symmetric for longs and shorts, and the parameter set is deliberately small and broadly ranged to resist curve-fitting.

How It Works

The strategy evaluates its logic once per completed bar. When a new bar opens, it treats the just-completed candle (shift 1) as the signal candle and works only with closed data, avoiding decisions based on a still-forming bar.

Here is how the pieces fit together:

Close Location Value MT5 EA
Illustrative example of the strategy’s entry and exit logic — not real trading results.

Strategy Parameters

Parameter Default Min Max Description
ClvPeriod 14 5 40 EMA smoothing length for the per-bar Close Location Value — the "pressure line." Higher values react more slowly and demand more persistence.
BaselinePeriod 50 20 200 Length of the slower Close SMA used as the trend gate. Longer values enforce a stronger prevailing drift before signals are taken.
Threshold 0.20 0.05 0.60 Conviction band. The pressure line must cross out through +/− this level to trigger an entry. Higher values demand stronger closing bias.
AtrPeriod 14 7 30 Number of bars used to calculate ATR for stop and target distances.
AtrSlMult 2.0 1.0 4.0 Stop-loss distance as a multiple of ATR from the entry price.
AtrTpMult 3.0 1.0 6.0 Take-profit distance as a multiple of ATR from the entry price.
Lots 0.10 0.01 1.0 Fixed lot size used for every position.
Close Location Value MT5 EA — MQL5 source code

Recommended Chart Settings

This strategy operates on a single timeframe — whatever timeframe the chart is set to when you attach it. Because CLV-based persistence and ATR sizing are timeframe-agnostic in construction, the strategy can be studied across a range of settings, but it is generally most coherent on the H1 (1-hour) or H4 (4-hour) charts of liquid major forex pairs such as EUR/USD or GBP/USD, where trends have room to develop and spreads are typically tight.

Lower timeframes tend to produce more noise and more frequent, lower-quality crosses, while higher timeframes produce fewer but slower signals. As always, results will vary across different symbols, brokers, and market conditions, so treat any single configuration as a starting point for your own study rather than a fixed recommendation. Test on a demo account first and observe how the pressure line, trend gate, and ATR distances behave on the instrument you choose.

How to Install on MetaTrader 5

What to Consider Before Using This EA

Every strategy has strengths and trade-offs, and understanding both is part of learning to trade systematically.

Strengths of this approach:

Known limitations:

The strategy may underperform during low-volatility ranges, around major news spikes, or when a market transitions between regimes. Treat it as an analytical framework for studying closing-bias persistence, not as a set-and-forget solution.

Risk Management Tips

Sound risk management matters more than any single indicator. As you study this strategy, keep these general principles in mind:

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