Calgary
Posts: 1 since Oct 2016
Thanks Given: 0
Thanks Received: 0
|
New to the forum and about 4 months experience with TOS Software and thinkscript. I would like to post the following issue to see if anyone has a solution for it.
I need to place two opposite OPENING orders at the same time (Long and Short) to have only one of them executed upon the fulfillment of a complex condition (Study). Hence, each of these OPENING orders will have two conditions:
i) one that triggers the moment at which the order should be placed; let’s call it LG-cond for the LG buy order and SH-Cond for the Sell order and ,
ii) another to cancel the order upon the opposite being executed (that is, cancel the sell order the moment the LG-cond occurs or cancel the buy order the moment the SH-cond occurs.
Each of these OPENING orders in turn trigger OCO CLOSING orders (for only one of those to be executed while the rest are cancelled). I will refer these as CLOSING Orders.
My problem:
Independently of the CLOSING orders , the OPENING orders should be executed pretty much when placed, at market price. however, I have found the following limitations:
1) "plain Market OPEN orders may not be part of OCO group",
2) TOS would not accept OPENING orders, which need to be placed at Market price, with cancelling conditions.
Therefore placing one of the two would not cancel its opposite, leaving it open with the possibility of being executed which is not the desires result.
Hope someone knows how to place an that executes upon fulfillment of a study condition at market price or cancels upon fulfillment of a different study condition.
Thanks,
|