Skip to content

TicksHistoryLoadedEventArgs.Count

property · TicksHistoryLoadedEventArgs · cAlgo.API

DesktopCLICloud

Gets the number of the ticks.

Definition

public int Count {get;}
ticksHistoryLoadedEventArgs.Count: int

Returns int

Examples

protected override void OnStart()
{
    var ticks = MarketData.GetTicks("EURUSD");
    ticks.HistoryLoaded += OnTicksHistoryLoaded;
    ticks.LoadMoreHistoryAsync();
}

private void OnTicksHistoryLoaded(TicksHistoryLoadedEventArgs args)
{
    Print("Loaded {0} more ticks", args.Count);
}
def on_start(self):
    self.ticks = api.MarketData.GetTicks("EURUSD")
    self.ticks.HistoryLoaded += self.on_ticks_history_loaded
    self.ticks.LoadMoreHistoryAsync()

def on_ticks_history_loaded(self, args):
    api.Print(f"Loaded {args.Count} more ticks")