D:\yxl _vny\vnpy\app\cta_strategy\backtesting.py:394: RuntimeWarning: invalid value encountered in log
df["return"] = np.log(df["balance"] / df["balance"].shift(1)).fillna(0)
D:\yxl _vny\vnpy\app\cta_strategy\backtesting.py:394: RuntimeWarning: invalid value encountered in log
df["return"] = np.log(df["balance"] / df["balance"].shift(1)).fillna(0)
这个是提示,不是报错,忽略就行