I have the following bracket order,
ENTRY -> aapl limit buy GTC, conditionsCancelOrder=True, conditionsIgnoreRth = True -> $192.00 -> time conditional isMore=True, expires at 3:30pm
TAKEPROFIT -> aapl MIT sell GTC -> $200
STOPLOSS -> aapl STOP sell GTC -> $190
CLOSE AT TIME -> aapl mkt sell GTC, conditionsCancelOrder=False, conditionsIgnoreRth=True, OutsideRth = True -> time conditional isMore=True, activates at 3:35pm
I wish to change my takeprofit into 2 parts and leave the rest of it intact, I want to do a LIT, LMT or darkice, order at 200 dollars. Then if it doesn't fill within 5 mins, I want to push the rest into a market or MIT order at 200.
But if it happens at 3:30-3:34, the close at time should cover it and it should just market exit at 3:35.
So something like this,
ENTRY -> aapl limit buy GTC, conditionsCancelOrder=True, conditionsIgnoreRth = True -> $192.00 -> time conditional isMore=True, expires at 3:30pm
TAKEPROFITLIMIT -> aapl LMT/LIT sell GTC -> $200
TAKEPROFITMKT -> aapl MKT sell GTC -> 5 mins later
STOPLOSS -> aapl STOP sell GTC -> $190
CLOSE AT TIME -> aapl mkt sell GTC, conditionsCancelOrder=False, conditionsIgnoreRth=True, OutsideRth = True -> time conditional isMore=True, activates at 3:35pm
Is something like this possible with ib/twsapi?