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
CQG: Convert stop orders guaranteed to be executed to market orders (Again)
- Kate MultiCharts
- Posts: 606
- Joined: 21 Oct 2020
- Has thanked: 12 times
- Been thanked: 152 times
Re: CQG: Convert stop orders guaranteed to be executed to market orders (Again)
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.
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.
Re: CQG: Convert stop orders guaranteed to be executed to market orders (Again)
The rejected order will not be resent in simple cases.......
The rejected order will not be replaced or resent.
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
- Kate MultiCharts
- Posts: 606
- Joined: 21 Oct 2020
- Has thanked: 12 times
- Been thanked: 152 times
Re: CQG: Convert stop orders guaranteed to be executed to market orders (Again)
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.
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.