Question about the previous post

Author: tony233, Created: 2021-12-28 11:33:17, Updated: 2021-12-28 11:33:47

img imgI mean, if I have a technical indicator that needs to get the last 600 bars of data, but records only gets 201 bars the first time it runs, and I want to get 600 bars until the next k-line accumulates, like on my graph I started retesting on August 2nd, took 15 minutes to get the bar, and had to wait until August 6th to get the 600 bars, then my problem is can I get the last 600 bars of data at the initial time?


More

tony233Oh, well. I looked at the following documentation, and it's equivalent to saying exchange.SetMaxBarLen ((500) how much data can be returned depends on the maximum data the exchange interface can provide, right?

The Little Dream- The retesting system does not have a full-stock swap. - The exchange.SetMaxBarLen ((500) function is available in the API documentation, see below.

tony233And I'm going to post it again, and if you're interested, I'm going to use your function to get 200 k strings at the beginning.