Skip to content

Ticks.LoadMoreHistory

method · Ticks · cAlgo.API

DesktopCLICloud

Loads more historical ticks. Method returns the number of loaded ticks that were added to the beginning of the collection.

Definition

int LoadMoreHistory()
ticks.LoadMoreHistory() -> int

Returns int — Number of loaded bars

Examples

var ticks = MarketData.GetTicks();
var loadedCount = ticks.LoadMoreHistory();
Print("Loaded {0} more ticks, total: {1}", loadedCount, ticks.Count);
ticks = api.MarketData.GetTicks()
loadedCount = ticks.LoadMoreHistory()
api.Print(f"Loaded {loadedCount} more ticks, total: {ticks.Count}")