Skip to content

How about basket trading strategy #529

Answered by cjdsellers
wangzhe3224 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Zhe,

You're right that you'd want a single strategy to handle a rebalancing from one portfolio state to a target state.
Assuming you have those { 2 .. 200 } instruments available, then you could just fetch those with the self.cache.instrument(...) method (if you needed to reference them for price and quantity).

Then at this stage you would need to write your own logic to execute towards your target portfolio state. Something as simple as calculating the differences (within a threshold or not), and submitting the necessary orders.

This rebalancing approach is very popular though, and will likely be one of the first execution algos introduced, however for the time being it falls into the…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cjdsellers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
3 participants