Skip to main content

IOrderFlowIndicator

Extends ITickIndicator with order flow configuration: calculation mode, tape reconstruction, and iceberg detection algorithm. This is the base interface for all order flow indicators (Footprint, BigTrade, VolumeDelta, DeltaDivergence).

Namespace: MZpack Inheritance: IOrderFlowIndicator : ITickIndicator : IIndicator

ITickIndicator

Real-time market data access and volume conversion utilities. Inherited by all tick-processing indicators.

Price & Side

PropertyTypeDescription
BestBiddoubleCurrent best bid price
BestAskdoubleCurrent best ask price
LastPricedoubleLast trade price
PriorPricedoublePrevious trade price
LastTradeSideTradeSideSide of the last trade (Ask, Bid, NA)
SideChangedbooltrue if last trade side differs from previous

Volume Access

MethodReturnsDescription
BestBidVolume()longCurrent volume at best bid
BestAskVolume()longCurrent volume at best ask
BestBidPriorVolume()longPrevious volume at best bid
BestAskPriorVolume()longPrevious volume at best ask

Volume Conversion

Handles volume representation differences between standard instruments and cryptocurrencies.

MethodReturnsDescription
FromInternalVolume(long)doubleConvert internal long volume to display volume
FromInternalVolume(double)doubleConvert internal double volume to display volume
VolumeToCryptoCurrency(long)doubleConvert to cryptocurrency volume (decimal)
VolumeToCryptoCurrency(double)doubleConvert to cryptocurrency volume (decimal)
VolumeFromCryptoCurrency(double)longConvert cryptocurrency volume back to internal format
VolumeToString(double, string, bool)stringFormat volume as string using crypto decimal places
PropertyTypeDescription
CryptoCurrencyVolumeDecimalPlacesintDecimal places for cryptocurrency volume display

IOrderFlowIndicator

Configuration for order flow calculation and tape reconstruction.

Properties

PropertyTypeDefaultDescription
OrderflowCalculationModeOrderflowCalculationModeHow bid/ask volumes are assigned to trades
ReconstructTapeboolEnable tape reconstruction (aggregates individual trades into big trades)
ReconstructTape_UseTimestampsOnlyboolUse only timestamps for reconstruction (ignore DOM pressure/support)
OrderflowApplyModeOrderflowApplyModeWhen mode changes take effect
IcebergAlgoIcebergAlgoIceberg detection algorithm
ReconstructTapeChangedUIboolUI state flag: tape reconstruction setting changed
OrderflowApplyModeChangedUIboolUI state flag: apply mode setting changed

Enums

OrderflowCalculationMode

ValueDescription
BidAskBid/Ask calculation. Use for futures and stock markets. Requires Tick Replay for historical data
UpDownTickUp/Down tick calculation. Use for Forex and crypto
HybridUpDownTick for historical data, BidAsk for live. Use for NSE and similar markets

OrderflowApplyMode

ValueDescription
ChartReloadChanges applied on chart reload
OnTheFlyChanges applied immediately

IcebergAlgo

ValueDescription
HardStrict iceberg detection — requires exact volume match patterns
SoftRelaxed iceberg detection — allows approximate matching

Derived Interfaces

InterfaceAdds
IFootprintIndicatorFootprint bars, sessions, imbalance/absorption data
IBigTradeIndicatorFiltered large trades, iceberg detection, DOM pressure
IVolumeDeltaIndicatorDelta per bar, cumulative delta
IDeltaDivergenceIndicatorZigZag breakpoints, divergence signals