Indicator.OnDestroy
method · Indicator · cAlgo.API
DesktopCLICloud
Called when Indicator is destroyed.
Definition
protected internal void OnDestroy()
api.OnDestroy() -> None
Examples
protected override void OnDestroy()
{
Print("Indicator destroyed after {0} bars", Bars.Count);
}
public override void Calculate(int index)
{
}
def on_destroy(self):
api.Print(f"Indicator destroyed after {api.Bars.Count} bars")