Click or drag to resize

TradesClusterSignal Constructor (Strategy, StrategyBigTradeIndicator, SignalDirection)

Initializes a new instance of the TradesClusterSignal class

Namespace:  MZpack.NT8.Algo.Signals
Assembly:  MZpack.NT8.Pro (in MZpack.NT8.Pro.dll) Version: 3.18.1.0 (3.18.1.0)
Syntax
C#
public TradesClusterSignal(
	Strategy strategy,
	StrategyBigTradeIndicator indicator,
	SignalDirection direction
)

Parameters

strategy
Type: MZpack.NT8.AlgoStrategy
Parent strategy.
indicator
Type: MZpack.NT8.Algo.IndicatorsStrategyBigTradeIndicator
BigTrade indicator instance.
direction
Type: MZpack.NT8.AlgoSignalDirection
Resulting direction of validated signal.
Examples
Creates TradesClusterSignal instance.
C#
Signal signal = new TradesClusterSignal(Strategy, bigTradeIndicator, SignalDirection.Short)
{
    Side = TradeSide.Ask,
    Range = new Range() { Bars = 10, Ticks = 12, Logic = Logic.And },
    MinVolume = 200,
    MinCount = 5,
    VolumeCountLogic = Logic.And,
    PartiallyVisibleMode = SignalPartiallyVisibleMode.OnPatternValidated
});
See Also