Skip to main content

RelativeToProfileSignal

Evaluates the current price position relative to a volume profile level — VWAP, Value Area (VAH/VAL), or standard deviation bands.

Namespace: MZpack.NT8.Algo.Signals Inheritance: RelativeToProfileSignal : Signal Data source: Level1 | Calculate: OnBarClose Indicator: IVolumeProfileIndicator Source: [INSTALL PATH]/API/Signals/RelativeToProfileSignal.cs

Parameters

NameTypeDefaultDescription
RelativeToProfileRelativeToProfileProfile level: VA or VWAP
VWAPTypeVWAPModeNoneVWAP variant: Last, Dynamic, DynamicStdDev1, DynamicStdDev2
IsReversedboolfalseReverse signal direction
IsAnyWhenOutsideboolfalseReturn Any direction when price is outside StdDev/VA bands

Signal Logic

VA mode:

DirectionCondition
LongPrice < VAL (below Value Area)
ShortPrice > VAH (above Value Area)

VWAP mode:

DirectionCondition
LongPrice < VWAP
ShortPrice > VWAP

StdDev mode (DynamicStdDev1/2):

DirectionCondition
LongPrice < lower standard deviation band
ShortPrice > upper standard deviation band
AnyPrice outside bands when IsAnyWhenOutside = true

Example

var signal = new RelativeToProfileSignal(strategy,
MarketDataSource.Level1, SignalCalculate.OnBarClose);
signal.RelativeToProfile = RelativeToProfile.VA;

pattern.Signals.Root.Add(signal);