vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 7
声望: 3

Traceback (most recent call last):
File "C:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\ui\widget.py", line 281, in process_backtesting_finished_event
self.chart.set_data(df)
File "C:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\ui\widget.py", line 754, in set_data
hist, x = np.histogram(df["net_pnl"], bins="auto")
File "C:\vnstudio\lib\site-packages\numpy\lib\histograms.py", line 710, in histogram
bin_edges, uniform_bins = _get_bin_edges(a, bins, range, weights)
File "C:\vnstudio\lib\site-packages\numpy\lib\histograms.py", line 385, in _get_bin_edges
endpoint=True, dtype=bin_type)
File "C:\vnstudio\lib\site-packages\numpy\core\function_base.py", line 115, in linspace
y = _nx.arange(0, num, dtype=dt)
ValueError: Maximum allowed size exceeded

Administrator
avatar
加入于:
帖子: 4220
声望: 241

你这是用了多大的数据量?numpy居然报错溢出了...

© 2015-2019 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号-3