Cancelling Limit Order When Market Order Closed
Cancelling Limit Order When Market Order Closed
12 Apr 2015, 21:07
Hi all,
So i've written my robot such that when triggered by market conditions, both a market order and limit order are placed.
Both have the same winning close price.
The limit order is placed under the assumption that the market order will be successfull, with a view to maximise profits.
I want the robot to work in such a way that if the market order reaches its target winning close price, the limit order is cancelled (given that the limit order price has also been reached and the market may now tend in the opposite direction).
I'm assuming there's an easy way to do this, but I can't for the life of me find it.
Thanks
Kevin
13 Apr 2015, 21:16
The idea is to prevent a limit order being filled after the winning value has been reached.
@Kevin