Click or drag to resize

MZpackStrategyBaseOnEachTickHandler Property

The handler triggered on each tick. currentBarIdx is the index of the current bar.

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 OnTickDelegate OnEachTickHandler { get; set; }

Property Value

Type: OnTickDelegate
Examples
C#
// Constructor
public MyMZpackCustomStrategy() : base()
{
    OnEachTickHandler = new OnTickDelegate(StrategyOnEachTickHandler);
}

// Implement the handler
protected void StrategyOnEachTickHandler(MarketDataEventArgs e, int currentBarIdx)
{
}
See Also