Blog / Strategy
Strategy

Settlement Barycenter Drift

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?

Settlement Barycenter Drift is a trend-conviction trading strategy for MetaTrader 5 that reads price action purely from raw candlestick geometry — the open, high, low, and close of each completed bar — rather than from any traditional indicator, chart pattern, or support/resistance concept. Its core measurement tool is a custom "drift" oscillator built from two dimensionless bar statistics (a traverse value and a settlement value), which are combined, smoothed with a leaky integrator, and then converted into a self-adapting z-score (a statistical measure of how far a value sits from its recent average). The trading style is systematic trend-following with adaptive, volatility-based risk controls.

The strategy is designed for markets that develop and sustain directional conviction — periods where buyers or sellers not only push price but hold it into the close, bar after bar. Because every calculation is normalised by each bar's own range, the model aims to behave consistently across calm and volatile regimes alike, standardising its own signal against recent history before it acts. This makes it a strategy that attempts to tune itself to whatever instrument and timeframe it runs on.

As a learning tool, Settlement Barycenter Drift is well suited to intermediate traders who want to study how candle shape — not just candle direction — can be quantified into a single conviction score. It demonstrates several advanced concepts in one package: range normalisation, exponential memory, statistical standardisation, and model-native exits. It is not a shortcut to results and should be treated as an educational framework for understanding auction-based price analysis.

How It Works

The strategy processes one completed candle at a time (it acts once per bar, evaluating the bar that has just closed). Each finished bar is treated as the record of a completed auction, and the model asks two questions about it.

The strategy then builds its signals as follows:

Entry conditions (symmetric long and short):

Exit and risk logic:

settlement barycenter drift MT5 EA
Illustrative example of the strategy’s entry and exit logic — not real trading results.

Strategy Parameters

Parameter Default Min Max Description
DriftMemory 10 3 40 Memory P of the leaky conviction integrator (lambda = P/(P+1)). Larger values give a longer memory, smoother and slower drift.
StandardizeWindow 60 20 200 Rolling window N (in bars) used to standardise the drift into a z-score. Wider windows judge "extreme" against a longer history.
TriggerZ 1.2 0.5 3.0 The z-score threshold (theta) — how statistically extreme control must be before the strategy acts. Higher values demand stronger conviction.
AtrPeriod 14 7 30 ATR length (in bars) used to measure volatility for stop-loss and take-profit distances.
AtrSlMult 2.0 0.5 5.0 Stop-loss distance as a multiple of ATR. Larger values place a wider stop.
AtrTpMult 3.0 0.5 8.0 Take-profit distance as a multiple of ATR. Larger values set a more distant target.
Lots 0.10 0.01 1.0 Fixed lot size for each position. Adjust to suit your account size and risk tolerance.
settlement barycenter drift MT5 EA — MQL5 source code

Recommended Chart Settings

Settlement Barycenter Drift is a single-timeframe strategy: every bar calculation uses the chart's own timeframe, so it runs on whatever timeframe you attach it to. This makes the chart timeframe an important choice rather than a fixed setting. A common starting point for study is a liquid major forex pair such as EUR/USD on the H1 (1-hour) chart, which offers enough bars for the standardisation window to fill while keeping each auction meaningful.

Because the model normalises everything by each bar's range and standardises its drift against recent history, it is deliberately built to adapt across instruments and timeframes. That said, results will vary considerably across different symbols, timeframes, and market conditions. Always study the strategy's behaviour on your chosen market in a testing environment before drawing any conclusions, and remember that a setting that suits one regime may not suit another.

How to Install on MetaTrader 5

What to Consider Before Using This EA

Every strategy has strengths and limitations, and an honest understanding of both is essential.

Strengths of this approach:

Known limitations:

The strategy may underperform during low-volatility drift, news-driven spikes, or extended consolidation, where directional control is genuinely ambiguous. Treat it as an analytical framework to study, not a finished solution.

Risk Management Tips

Sound risk management matters more than any single entry signal. Consider these general principles as part of your education:

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