Bars.LoadMoreHistory
method · Bars · cAlgo.API
DesktopCLICloud
Loads more historical bars. Method returns the number of loaded bars that were added to the beginning of the collection.
Definition
int LoadMoreHistory()
api.Bars.LoadMoreHistory() -> int
Returns int
Examples
var loadedCount = Bars.LoadMoreHistory();
Print("Loaded {0} more bars, total: {1}", loadedCount, Bars.Count);
loadedCount = api.Bars.LoadMoreHistory()
api.Print(f"Loaded {loadedCount} more bars, total: {api.Bars.Count}")