MultiData Strategy
-
Use the link below to go the original post
Click here to see the full blog post
-
If i do arbitrage, means i need to trade two different instruments based on the spread. How to execute the two or multi orders at the same time?
-
@vivalavida1982 said in MultiData Strategy:
How to execute the two or multi orders at the same time?
self.buy(self.data0, size=x) self.sell(self.data1, size=y)
Or is it something else? The operational methods to buy and sell are described in the docs: Docs - Strategy
-
I need to check these two orders' sitution before starting the new trading? So I need to put 2 parameters(order1, order2) with def notify_order()?
-
No. You cannot out of thin air receive 2 arguments in a method when only 1 is defined.
-
It seems doesn't work.
-
-
Do you have email , as i can send codes to you for a check.
-
You may post code snippets. That's what this is for. In any case this is not a code check service.