Requote acceptance
- Accepting a requote?
- OrderClose(), requotes and time between orders
- Getting Error Code 138 in Backtesting
Is there any way to code the acceptance of a broker requote in MQL4? I see them in the journal but see no function that uses requotes as an argument and brokers only allow a couple of seconds to accept/reject them manually. This would be a very useful feature in an expert I'm writing. Thanks.
// Internal Variable
int Restarts;
int start() {
// Ticks
int tickStart = GetTickCount();
//Check to make sure our pricing has not changed
TickBid = Bid;
TickAsk = Ask;
// Put this 1 line before you use any "order function" OrderSend() OrderModify()
ect...
RefreshRates();if (Bid != TickBid || Ask != TickAsk){start();Restarts++;}
// And for your last 4 lines of code in the start() ...
Print("EA calculation took "+(GetTickCount()-tickStart)+" milliseconds.
With "+Restarts+" Restarts...");
Restarts = 0;
return (0);
}