Skip to main content

DOMBlockSignal

Detects persistent large orders (blocks) in the DOM that have been present for a minimum time, are within a specified distance from the current price, and exceed a volume threshold.

Namespace: MZpack.NT8.Algo.Signals Inheritance: DOMBlockSignal : Signal Data source: Level2 | Calculate: NotApplicable Indicator: StrategyMarketDepthIndicator Source: [INSTALL PATH]/API/Signals/DOMBlockSignal.cs

warning

Requires Level 2 data — live or replay only. Not available in historical backtesting.

Parameters

NameTypeDefaultDescription
TimeSecondsint5Minimum time in seconds the block must persist in DOM
DistanceTicksint10Maximum distance from current price in ticks
Volumelong100Minimum volume of the block
EntryPriceOffsetTicksint0Entry price offset from block price in ticks

Signal Logic

DirectionCondition
LongBid-side block meets all criteria (time, distance, volume)
ShortAsk-side block meets all criteria

Example

var signal = new DOMBlockSignal(strategy,
MarketDataSource.Level2, SignalCalculate.NotApplicable);
signal.Volume = 500;
signal.TimeSeconds = 10;
signal.DistanceTicks = 5;

pattern.Signals.Root.Add(signal);