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: June 26, 2022

Comments