I have a system running that uses python.
I have noticed that I can greatly simplify my code if I can get the order placed in a certain fashion.
I want to place the first position with a simple buy, which no problem. Then I want to place a second oco order to liquidate my position at x if price increases and to buy more if it goes down
Example I buy 10 shares at 100. I want the order to sell the 10 if the price hits 110 and to buy an additional 15 shares if it drops to 90.
Is it possible to do this with a oco order? If so can you show how the order would look in python.