Questions:One Cancels Other (OCO) orders are the price orders sent in a group. When any of OCO orders is filled or partially filled, the system cancels or reduces size of other orders in this OCO-group.
1. If we issue two simultaneous trade entry limit orders (one long trade entry at one price and one short trade entry at a different price) with the intention that whichever trade entry order get filled first, the other order gets cancelled, is there anything special that needs to be coded in our PowerLanguage signal/strategy to ensure that those two orders are processed as an OCO Order Group? We are using the native OCO order processing in the CQG Broker Connection.
2. Does anyone have any coding available that would illustrate the best way to manage and process protection against the market risk of OCO orders as documented in the MultiCharts Online Help:
Many thanks!Please note that in case of high market volatility there may be not enough time to cancel the order and therefore both orders may be filled. Both orders also may be filled in the unlikely event of crash or connection loss.