Click or drag to resize

Signal Constructor (Strategy, MarketDataSource, SignalCalculate, Boolean)

Initializes a new instance of the Signal class.

Namespace:  MZpack.NT8.Algo
Assembly:  MZpack.NT8.Pro (in MZpack.NT8.Pro.dll) Version: 3.18.1.0 (3.18.1.0)
Syntax
C#
public Signal(
	Strategy strategy,
	MarketDataSource source,
	SignalCalculate calculate,
	bool isReset
)

Parameters

strategy
Type: MZpack.NT8.AlgoStrategy
Parent strategy.
source
Type: MZpack.NT8.AlgoMarketDataSource
Market data source for the signal: Level1, Level2
calculate
Type: MZpack.NT8.AlgoSignalCalculate
How to calculate signal. For source == MarketDataSource.Level2 use Calculate.NotApplicable.
isReset
Type: SystemBoolean
True if signal direction will be reset to None before each new calculation.
Examples
Example of the constructor of the signal triggered on Level 1 market data and on bar close.
C#
class AbsorptionSRZonesSignal : Signal
{
    StrategyFootprintIndicator indicator;

    public AbsorptionSRZonesSignal(MZpack.NT8.Algo.Strategy strategy, StrategyFootprintIndicator indicator) : base(strategy, MarketDataSource.Level1, SignalCalculate.OnBarClose, false)
    {
        this.indicator = indicator;
    }
See Also