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
So I am creating a simple RSI oversold and overbought strategy, however, I want to optimize the stop loss and take profit. But when plotting, I can't select the column with the best win rate .
C:\Users\Ccchinh\OneDrive\Bitcoin\bug.py:22: UserWarning:
Subplot 'orders' raised an exception
Traceback (most recent call last):
File "C:\Users\Ccchinh\OneDrive\Bitcoin\bug.py", line 22, in <module>
fig = pf.plot(subplots=[
File "C:\Users\Ccchinh\AppData\Local\Programs\Python\Python310\lib\site-packages\vectorbt\generic\plots_builder.py", line 604, in plots
raise e
File "C:\Users\Ccchinh\AppData\Local\Programs\Python\Python310\lib\site-packages\vectorbt\generic\plots_builder.py", line 589, in plots
plot_func(**final_kwargs)
File "C:\Users\Ccchinh\AppData\Local\Programs\Python\Python310\lib\site-packages\vectorbt\portfolio\orders.py", line 385, in plot
self_col = self.select_one(column=column, group_by=False)
File "C:\Users\Ccchinh\AppData\Local\Programs\Python\Python310\lib\site-packages\vectorbt\base\array_wrapper.py", line 787, in select_one
return _check_out_dim(_self[column])
File "C:\Users\Ccchinh\AppData\Local\Programs\Python\Python310\lib\site-packages\vectorbt\base\array_wrapper.py", line 765, in _check_out_dim
raise TypeError("Could not select one column: multiple columns returned")
TypeError: Could not select one column: multiple columns returned
Process finished with exit code 1
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So I am creating a simple RSI oversold and overbought strategy, however, I want to optimize the stop loss and take profit. But when plotting, I can't select the column with the best win rate .
data, which has different win rates but I can't select the column with the best win rate because they have the same value
Error output:
Beta Was this translation helpful? Give feedback.
All reactions