Cancels all orders across all connections across all accounts. A return value of 0 indicates success and -1 indicates an error. Success indicates success in submitting the command NOT that all orders are in fact cancelled.
int NTCancel(string orderId)
Cancels an order by orderId. A return value of 0 indicates success and -1 indicates an error. Success indicates success in submitting the command NOT that the order has in fact been cancelled.
I have 2 orders pending one on INTC the other on MSFT.
NTBuyLimit("A_Trade", 500, 100); // limit order for INTC
NTBuyLimit("A_Trade", 500, 50); // limit order for MSFT
Situation: 1) On my chart of MSFT on tradestation the following code gets executed... No code is generated on my chart of INTC
NTCancelAllOrders;
Situation: 2) On my chart of MSFT on tradestation the following code gets executed... No code is generated on my chart of INTC
NTCancel("A_Trade");
Situation 1) The limit order for both MSFT and INTC get cancelled right??
Situation 2) I'm not really sure on this one. I know that the limit order for MSFT gets cancelled, but does the limit order for INTC gets cancelled. There was no code that was executed on the INTC chart, however the "order ID" for both the limit order of INTC and MSFT were the same, so would that mean that all orders in the account with the order ID of "A_Trade" gets cancelled or is the only order that will be getting cancelled the symbol of the chart in which the code of generated, and in this case MSFT ?
I hope that was clear
Thanks
Comment