CQG: Convert stop orders guaranteed to be executed to market orders (Again)

Questions about MultiCharts and user contributed studies.
scotthkao
Posts: 31
Joined: 19 Feb 2014
Has thanked: 14 times

CQG: Convert stop orders guaranteed to be executed to market orders (Again)

Postby scotthkao » 28 Nov 2021

viewtopic.php?t=51173

In this topic, the function has been explained but I'm not sure of the following scenario.
If a buy stop order is sent and MC(CQG) finds that buy order stop price > BestAsk, then the expected stop order is sent to the exchange.
But at the exchange side, the price suddenly changes sharply so that buy order stop price < BestAsk or trade price and then the exchange rejects the stop order.
Multicharts receives the rejected stop order and then tries to resend the order again.
We are still on the same bar so there is no new signal calculation.
At this time, what order will be sent if the buy order price is now lower than the new BestAsk?

1. the same stop order as the first one will be sent again, or
2. a new market order will be sent

User avatar
Kate MultiCharts
Posts: 575
Joined: 21 Oct 2020
Has thanked: 7 times
Been thanked: 144 times

Re: CQG: Convert stop orders guaranteed to be executed to market orders (Again)

Postby Kate MultiCharts » 08 Dec 2021

Hello scotthkao,

The order was sent as is, when it was being sent to the broker, it became un-executable and was rejected by the broker.
In that case the mentioned option is irrelevant. If conversion is enabled, it is applied before the order is sent.
The rejected order will not be replaced or resent.

scotthkao
Posts: 31
Joined: 19 Feb 2014
Has thanked: 14 times

Re: CQG: Convert stop orders guaranteed to be executed to market orders (Again)

Postby scotthkao » 08 Dec 2021

......
The rejected order will not be replaced or resent.
The rejected order will not be resent in simple cases.
But in case multiple signals are used in a chart and one of the signal is IOG-based, the rejected order will be resent.
So, in this case, will the same rejected order be resent to the broker or a new converted order will be resent if the CQG conversion option is enabled?

Please see the signals as attached I tested for the rejected-order-resending behavior.
In this case, the IOG signal even has no order sending statement (buy or sellshort next bar...).
Attachments
2021-12-9 上午 09-57-10.png
order resending signals
(29.18 KiB) Not downloaded yet

User avatar
Kate MultiCharts
Posts: 575
Joined: 21 Oct 2020
Has thanked: 7 times
Been thanked: 144 times

Re: CQG: Convert stop orders guaranteed to be executed to market orders (Again)

Postby Kate MultiCharts » 28 Dec 2021

scotthkao,

MultiCharts does not re-send the rejected order. Your strategy generates a new order identical to the rejected one during the next script calculation.
And a newly generated order that corresponds to the position open and close rules should be sent to the broker.

You can check that the sent order is new by using a different order name each time.


Return to “MultiCharts”