The resource loading... loading...

Why is the length of the records that are being obtained incorrect?

Author: bamsmen, Created: 2020-05-27 20:33:00, Updated:

function main (() { exchange.SetContractType (( quarter type)) exchange.SetMarginLevel ((3)) is a Let account = exchange.GetAccount Log (( account information,Balance:, account.Balance, FrozenBalance:, account.FrozenBalance, Stocks:, account.Stocks, FrozenStocks:, account.FrozenStocks)) Let records = [] exchange.SetMaxBarLen ((25) while ((true) { _CDelay ((21000) records = _C( exchange.GetRecords, KPeriod ) Log(records) Sleep(301000) } }

It used to be good, but suddenly it was only 6 bars, sometimes 7 bars.


More

The grassWhat cycles, if not the default cycle, are relatively few at the beginning and accumulate as the retest goes on?

bamsmenIf you find a problem, you'll get this problem using the pop ((() function elsewhere, but using pop ((() is supposed to be after Log ((records.length) and you don't know why, maybe it's a bug in the backtest system.

bamsmenCycle 3600, I've only had six or seven. Maybe it's my code problem, but I don't know where the problem is.