Replies: 1 comment 2 replies
-
Futures instrument have a date (before or at expiration) after which they automatically close the position. Can you check that it's not the case? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've created a strategy that I want not to short (exact replication of Andreas Clenow momentum strategy).
Buying looks like: zipline.api.order_target_percent(asset, 0.05)
Selling: zipline.api.order_target(asset, 0)
After some time, the strategy unexpectedly starts opening shorts. I've also 'set_long_only()' in the initialize function but this doesn't help. Anyone else who experience this problem?
Beta Was this translation helpful? Give feedback.
All reactions