SessionBreak
Previous Topic  Next Topic 

Definition

Gets a value indicating if the call to OnBarUpdate() method is the first call in a new session.


Property Value

This property returns true if the call to OnBarUpdate() is the first call of the session; otherwise, false.


Syntax

Bars.SessionBreak


Property Of

Custom Indicator, Custom Strategy


Examples

// OnBarUpdate method
protected override void OnBarUpdate()
{
    if (Bars.SessionBreak)
        // Reset or store some values here
}