Skip to main content

TradesClusterSignal

Detects a cluster of trades on a specific side (bid or ask) that meet volume, count, aggression, and range criteria. The direction is fixed at construction (Long or Short).

Namespace: MZpack.NT8.Algo.Signals Inheritance: TradesClusterSignal : Signal Data source: Level1 | Calculate: OnEachTick Indicator: StrategyBigTradeIndicator Source: [INSTALL PATH]/API/Signals/TradesClusterSignal.cs

Parameters

NameTypeDefaultDescription
SideTradeSideSide of trades to collect (Bid or Ask)
RangeRangeBar/tick range constraint for the cluster
MinVolumelong0Minimum total volume in the cluster
MinCountlong0Minimum number of trades in the cluster
MinAggressionint0Minimum aggression (ticks) per trade
VolumeCountLogicLogicAndHow volume and count filters combine: And or Or

Signal Logic

The signal collects trades matching the Side and MinAggression criteria within the specified Range. When the collected cluster meets both (or either, per VolumeCountLogic) the MinVolume and MinCount thresholds, the pre-defined direction is returned.

Example

var signal = new TradesClusterSignal(strategy,
MarketDataSource.Level1, SignalCalculate.OnEachTick);
signal.Side = TradeSide.Bid;
signal.MinVolume = 500;
signal.MinCount = 5;
signal.Range = new Range { Bars = 3 };

pattern.Signals.Root.Add(signal);