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
First of all, thanks for developing this excellent library!
My strategy will enter short/long position right after closing long/short position, while short/long signal happens. And each postion will entry with full capital
The first straightforward method came up with my mind is that I can let short_entries = np.roll(exits, 1) to make them not to happen at the same time. But this method will make the backtest result inaccurate since my short_entries lag by one timeframe
Thanks in advance!
The text was updated successfully, but these errors were encountered:
First of all, thanks for developing this excellent library!
My strategy will enter short/long position right after closing long/short position, while short/long signal happens. And each postion will entry with full capital
Here is my code:
And I got an error, seems like vectorbt does not support this behavior.
Is there any methods that can implement it?
The first straightforward method came up with my mind is that I can let
short_entries = np.roll(exits, 1)
to make them not to happen at the same time. But this method will make the backtest result inaccurate since my short_entries lag by one timeframeThanks in advance!
The text was updated successfully, but these errors were encountered: