Replies: 1 comment
-
|
I found this in the docs folder: I will peruse that and see how it goes. Thanks :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'd like to use vectorbt to backtest pairs trading strategies and need a way for an Indicator/Signal to go long on one pair and short on the other when the Indicator/Signal is true. From what I've seen the portfolio opens up a position for both pairs (i.e. both go long) when I need equal and opposite positions to be opened.
Example flow:
It's step 3 above where I'm asking for help/guidance on what to do. I'm hoping there's an callback I can hook into or a way to target a given position direction at a given pair.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions