Cancelling Limit Order When Market Order Closed

Created at 12 Apr 2015, 21:07
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
KE

Kevin

Joined 05.12.2013

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
Replies

Kevin
13 Apr 2015, 21:16

The idea is to prevent a limit order being filled after the winning value has been reached.


@Kevin