Hi folks,
When I try backtesting of puting equity orders for a very long time on my algorithm, sometimes this OverflowError generates from running order(asset, shares)
or order_target_percent(asset, weight)
.
File "~/zipline/algorithm.py", line 1919, in order_target_percent(style=style)<br />
File "~/zipline/utils/api_support.py", line 125, in wrapped_method<br />
return method(self, *args, **kwargs)<br />
File "/~/zipline/algorithm.py", line 1310, in order<br />
return self.blotter.order(asset, amount, style)<br />
File "~/zipline/finance/blotter/simulation_blotter.py", line 97, in order<br />
File "~/zipline/finance/blotter/simulation_blotter.py", line 138, in order<br />
self.max_shares)<br />
<br />
OverflowError: Can't order more than 100000000000 shares``` <br />
<br />
So far, I have tried to specify ordering different stocks, narrowing down the time range(I would like to generate the results of 20 years, but backtesting on only 3-5 years worked), and handling this error as exception. But still it breaks the algo; the problem seems from `data.current(asset, 'price') ?= NaN`, but handling 0 or NA should already be included in the package.<br />
<br />
I hope someone could figure this out, and thanks so so much for the help!