You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a weird phenomenon that the "close" curve is missing on the plot when selecting a single column from a multi-asset Portfolio (no matter whether it is grouped or not).
That is, even though the "close" curve cannot display normally, hovering the mouse on the Plotly plot can show the "close" data points.
After some investigation, I am guessing that might be because some nan were in the "close" data.
But this can happen easily when batch backtesting among multiple instruments, which might involve tick missing while joining them (their close price ticks) into a single DataFrame.
I found a weird phenomenon that the "close" curve is missing on the plot when selecting a single column from a multi-asset Portfolio (no matter whether it is grouped or not).
That is, even though the "close" curve cannot display normally, hovering the mouse on the Plotly plot can show the "close" data points.
After some investigation, I am guessing that might be because some
nan
were in the "close" data.But this can happen easily when batch backtesting among multiple instruments, which might involve tick missing while joining them (their close price ticks) into a single DataFrame.
Here is the reproduction code and attachment:
Version:
vectorbt
: 0.26.1pandas
: 1.5.3The text was updated successfully, but these errors were encountered: