Def,
I am currently putting some finishing touches on my autotrading program that does rule-based automatic execution of order management (autosetting of stop loss and limit order upon status being "filled" -- autoscaling in and out upon boolean rule base procedures, etc).
Here is my question:
When a stop loss order is placed during daytime hours on Globex, is that stop sent to Globex or merely a MIT order on IB's computers that is sent to Globex when that price is hit? I am sitting here right now looking at a "blue" status bar next to the stop order that was just placed at -1.5 ES from the original contract fill price.
Also, the limit order was also put in at the same time for +1.0 ES points. Is the limit order sent to Globex, or is it to just placed on IB's systems until the market hits that price, which then is sent to Globex as a limit order? I have a "green" status light next to this one.
The reason I ask is because I am concerned about pass-thru bid/ask issues. If the order is sent, it may be possible to be filled on the ask when trying to sell and filled on the bid when trying to buy -- if the orders are sent into the que at Globex.
So, I guess my question comes down to this -- during market hours, how does IB handle stop and limit order with respect to Globex, and why does my limit order have a "green" status light and my stop a "blue" status light?
Question #2: I don't see any OCO/OCA order status in your developers kit. I assume it is up to the programmer to tag orders that should be OCO/OCA and have the program terminate the other OCO/OCA order when another is executed -- is this correct?
Thank you!
I am currently putting some finishing touches on my autotrading program that does rule-based automatic execution of order management (autosetting of stop loss and limit order upon status being "filled" -- autoscaling in and out upon boolean rule base procedures, etc).
Here is my question:
When a stop loss order is placed during daytime hours on Globex, is that stop sent to Globex or merely a MIT order on IB's computers that is sent to Globex when that price is hit? I am sitting here right now looking at a "blue" status bar next to the stop order that was just placed at -1.5 ES from the original contract fill price.
Also, the limit order was also put in at the same time for +1.0 ES points. Is the limit order sent to Globex, or is it to just placed on IB's systems until the market hits that price, which then is sent to Globex as a limit order? I have a "green" status light next to this one.
The reason I ask is because I am concerned about pass-thru bid/ask issues. If the order is sent, it may be possible to be filled on the ask when trying to sell and filled on the bid when trying to buy -- if the orders are sent into the que at Globex.
So, I guess my question comes down to this -- during market hours, how does IB handle stop and limit order with respect to Globex, and why does my limit order have a "green" status light and my stop a "blue" status light?
Question #2: I don't see any OCO/OCA order status in your developers kit. I assume it is up to the programmer to tag orders that should be OCO/OCA and have the program terminate the other OCO/OCA order when another is executed -- is this correct?
Thank you!