Maximum number of assets in AssetList?

Posted By: Hredot

Maximum number of assets in AssetList? - 07/01/18 13:30

I have noticed that if my asset list has more than roughly 4000 assets, then I get error 064 saying that the assets.csv file has wrong format and the script crashes. Why this seemingly arbitrary limitation? Is there a way to run a backtest with substantially more than 4000 assets in use?
Posted By: Spirit

Re: Maximum number of assets in AssetList? - 07/01/18 22:09

In my experience, the limit is 500 assets for M1 history, otherwise the history data does not fit anymore in memory.
Posted By: Hredot

Re: Maximum number of assets in AssetList? - 07/02/18 01:01

I see, I am using D1 data, for which the 4000 assets do not come close to the 3GB RAM that Zorro reserves. Could easily fit 8000 such assets into memory. Considering that all of NYSE and NASDAQ amounts to about 6000-7000 assets, would be nice to be able to load all of them.
Posted By: jcl

Re: Maximum number of assets in AssetList? - 07/02/18 12:01

There is a #define MAX_ASSETS at 4096, so I suppose that's the hard asset limit. I'll check if we can remove or double that limit.
Posted By: Hredot

Re: Maximum number of assets in AssetList? - 07/02/18 12:09

That would be awesome, thanks for looking into it!
© 2024 lite-C Forums