I use C#.
I ran OrderSend with big volume.
But wait for 10 minutes will not proceed to the next line.
In the MT 4, an e-mail of OffQuote Error was received.
If volume is reduced, it will advance to the next line without problems.
This event is reproducible.
I want to get the next line even in a big volume.
It is troublesome to handle when locked. It is more convenient for me to have an exception.
How can I get the next step of OrderSend?
ticketNo = strategy.OrderSend(
symbol: symbol,
cmd: tradeOperation,
volume: lots,
price: price,
slippage: slippage,
stoploss: 0,
takeprofit: 0,
comment: "",
magic: magicNum,
expiration: expiration
);
I don't want to use Thread.Abort.
Due to the possibility of memory leak.
At strategy's method blocking, how can I cancel it?