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 Bar Conviction Trend Rider is a trend-following, momentum-continuation strategy built around the Close Location Value (CLV) — a candlestick metric that measures where inside its own high-low range a bar chooses to close. When a candle seals near its high, buyers have won that bar's auction; when it seals near its low, sellers have. By smoothing this reading over a short window, the strategy forms a running estimate of which side is decisively in control, then joins the higher-timeframe trend only when that conviction appears fresh and volume-backed.
This approach is designed for trending markets rather than choppy, range-bound conditions. It deliberately avoids two common temptations: it does not fade extremes (betting against a strong move), and it does not chase raw breakouts (jumping on a move that may already be exhausted). Instead, it waits for a stack of conditions to align — a defined trend regime, sustained conviction, a fresh ignition bar, and real participation — before it arms a trade. Because every calculation uses only fully-closed bars, the signals are non-repainting: a signal never changes after the fact.
As a learning tool, the Bar Conviction Trend Rider is well suited to traders who want to study how simple candlestick anatomy (where a bar closes) can be combined into a rules-based confluence filter. It is a clear, transparent example of multi-condition confirmation and volatility-based risk scaling. It is not a shortcut, and it is not appropriate for anyone expecting a mechanical system to remove the need for careful risk management and realistic expectations.
How It Works
The strategy evaluates its rules once per closed bar. It only opens a position when all of the entry conditions agree — this confluence stack is what filters out weak or ambiguous signals.
Entry conditions (a long trade signals when all are true; a short is the mirror image):
- Regime filter — Price must be above a slow trend EMA (Exponential Moving Average, a moving average that weights recent prices more heavily) for longs, or below it for shorts. This ensures trades are taken in the direction of the established trend.
- Conviction filter — The smoothed CLV must exceed the conviction threshold (positive for longs, negative for shorts), signalling that the crowd has been decisively one-sided over the recent window.
- Ignition filter — The just-closed bar's own CLV must agree with the trade direction, and that bar must close beyond the prior bar's close. This confirms the momentum is happening now, not stale.
- Volume filter — The signal bar's tick volume must exceed its own moving average, indicating real participation behind the move rather than a thin, low-conviction drift.
- Volatility check — The Average True Range (ATR, a measure of how much price typically moves per bar) must be positive so that stops and targets can be sized meaningfully.
Exit and risk logic:
- Stop-loss — Placed at the entry price minus (for longs) or plus (for shorts)
AtrMultSL × ATR. Because it scales with volatility, the stop automatically widens in fast markets and tightens in calm ones. - Take-profit — Placed at
AtrMultTP × ATRaway from entry. The fixed reward-to-risk ratio is simplyAtrMultTP ÷ AtrMultSL(2.5 ÷ 1.5 ≈ 1.67 at the defaults). - Trailing stop — Once a position moves into profit, the stop ratchets to
AtrMultTrail × ATRbehind price on every tick, only ever tightening. This lets winners run while protecting open gains, and it never loosens the stop. - One position per Magic — The strategy holds only a single position at a time. It never pyramids into winners or averages into losers.

Strategy Parameters
| Parameter | Default | Min | Max | Description | ||
|---|---|---|---|---|---|---|
| TrendEmaPeriod | 50 | 20 | 200 | Length of the slow EMA that defines the tradable trend regime. | ||
| ConvictionPeriod | 5 | 2 | 20 | Window over which the per-bar CLV is smoothed into a conviction reading. | ||
| ConvictionThreshold | 0.30 | 0.05 | 0.80 | How decisive smoothed conviction must be ( | CLV | beyond this) to arm a trade. |
| VolumeMaPeriod | 20 | 5 | 60 | Tick-volume moving-average window used as the participation filter. | ||
| AtrPeriod | 14 | 5 | 30 | ATR window used for stops, targets, and the trailing distance. | ||
| AtrMultSL | 1.50 | 0.50 | 4.00 | Stop-loss distance as a multiple of ATR. | ||
| AtrMultTP | 2.50 | 0.50 | 6.00 | Take-profit distance as a multiple of ATR (reward:risk = AtrMultTP ÷ AtrMultSL). | ||
| AtrMultTrail | 1.50 | 0.50 | 4.00 | Trailing-stop distance behind price as a multiple of ATR. | ||
| Lots | 0.10 | 0.01 | 1.00 | Fixed lot size used for each position. | ||
| Magic | 5313 | 0 | 9,999,999 | Magic number that tags and isolates this EA's trades. |

Recommended Chart Settings
The Bar Conviction Trend Rider was designed with a trending FX major or metal in mind — for example EURUSD or XAUUSD (gold) — on the M30 to H1 timeframes, where the interplay of trend, conviction, and volume tends to be cleanest. That said, the logic reads only the chart's primary timeframe and is symbol- and timeframe-agnostic, so it will run on whatever instrument and timeframe you attach it to.
Keep in mind that results will vary considerably across different market conditions. A parameter set that behaves well on a strongly trending pair may behave very differently on a range-bound or news-driven instrument. Always test any configuration on your own broker's data 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
Like any mechanical system, the Bar Conviction Trend Rider has clear strengths and equally clear limitations. Understanding both is part of using it responsibly.
Strengths of this approach:
- Non-repainting signals. Because every calculation uses only closed bars, a signal that appeared in the past never quietly rewrites itself — an important property when studying strategy behaviour.
- Multi-condition confluence. Requiring regime, conviction, ignition, and volume to all agree filters out many marginal setups that a single indicator would take.
- Volatility-adaptive risk. ATR-based stops and targets scale naturally to the instrument and current market conditions, rather than using fixed pip distances that suit one symbol but not another.
Known limitations:
- Trend dependence. As a trend-continuation system, it is most at home in directional markets. In choppy, sideways conditions, the regime and conviction filters can produce whipsaws or simply keep it out of the market for long stretches.
- Lag from smoothing. The smoothed CLV and slow EMA introduce some delay, which is the trade-off for filtering noise. Sharp reversals may not be caught early.
- Fixed lot sizing. The default sizing is a fixed lot, not a percentage of equity, so position risk does not automatically scale with account balance.
- Tick-volume caveat. In forex, "volume" is tick volume (number of price updates), not true traded volume, and it varies by broker and liquidity provider.
The strategy is best treated as a framework for learning how confluence filters and volatility-based exits behave — not as a set-and-forget solution.
Risk Management Tips
Sound risk management matters more than any single entry rule. As you study this or any strategy, keep these general principles in mind:
- Risk only a small fraction per trade. Many educators suggest risking no more than 1–2% of account equity on any single position, so that a losing streak does not threaten the account.
- Size positions deliberately. Adjust the lot size to your account and to the ATR-based stop distance, rather than using a large fixed lot regardless of balance.
- Start on a demo account. Test the EA and its parameters in a risk-free simulated environment until you understand how it behaves across different conditions before considering real capital.
- Understand drawdown. Every strategy experiences losing periods. Study the depth and duration of drawdowns you can realistically tolerate, both financially and emotionally.
- Keep expectations realistic. No configuration wins every trade, and past behaviour — including backtests — is not a promise of future outcomes.
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: BarConvictionTrendRider.ex5 (0 downloads)
- Source Code: BarConvictionTrendRider.mq5 (1 downloads)
- Documentation: BarConvictionTrendRider.pdf (1 downloads)