Skip to main content
Meridian’s imbalance bars use signed price-tick direction and an adaptive threshold.

Tick direction

For each aggTrade price:
The processor maintains an exponentially weighted average of tick signs:

Adaptive close threshold

After the warmup period, each signed tick is added to cumulative imbalance. The current threshold is:
The bar closes when:

Parameters

Warmup defaults to expected_ticks_per_bar. No imbalance bar is emitted during warmup.

Continuous state

The checkpoint stores the EMA, cumulative imbalance, global tick counter, previous price and direction, pending trades, and emitted sequence. This prevents archive boundaries and process restarts from changing future bars.
The adaptive threshold is a sampling rule, not a directional forecast. Positive or negative ending imbalance does not by itself constitute a trading signal.