Skip to content

IsLastBar Property

Summary

Returns true, if Calculate is invoked for the last bar

Signature

1
public bool IsLastBar {get;}

Return Value

bool

Declaring Type

cAlgo.API.Indicator

Examples

1
2
3
4
5
6
7
 public override void Calculate(int index)
{
    if (IsLastBar)
    {
        // this is the current (last) index
    }
}

Last update: March 23, 2023