[code lang=”csharp”]
protected override void OnBarUpdate()
{

if (Count – 2 == CurrentBar) //Calculate cycle on last finished, closed bar
{
}
}
[/code]