I am using a multicurrency looped EA. In the tester it is not tested at all because it does not react to new ticks. Everything else, I hope, is OK. Won't the EA be rejected due to inability to run the test?
Alexz: I am using a multicurrency looped EA. In the tester it is not tested at all because it does not react to new ticks. Everything else, I hope, is OK. Won't the EA be rejected due to inability to run the test?
intstart(){while( !IsStopped()){RefreshRates();
// код экспертаif(IsTesting())break;
Sleep(500);
}return(0);
}
I wonder if it would be an error if an EA did not handle re-quotes? And can an EA be removed from the Championship because of it?
It is difficult to detect this problem neither in the Strategy Tester, nor in demo mode or even in microreal-time. At least it did not occur at least once during one month of testing. However, it seems that organizers have decided to feed us with requotes in this championship. I judge it as an Expert Advisor tried to close an order on a generally calm market but got requotes. And this despite the fact that RefreshRates() immediately precedes OrderClose(). Well, error 138 is received and the order keeps working. Of course, the logic is broken, but it is not too bad.
Gentlemen of the contestants, are your creatures ready to fight requotes?
No, it isn't, RacerATC. Requotes have rather little to do with slippage. I don't even know which one. Valmars is right: you have to do a bunch of paranoid checks and appropriate loops to make the EA work as planned. But even in Expert Advisor source code included in standard package and in Code Base I haven't seen any normal checks yet.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I am using a multicurrency looped EA. In the tester it is not tested at all because it does not react to new ticks. Everything else, I hope, is OK. Won't the EA be rejected due to inability to run the test?
Thank you, Andrei!
Added a single test check outside the main cycle.
Added a single test check outside the main cycle.
I've added a single check to test outside the main loop.
Right - it won't :)
But I need it to not even try to test, because there will be no deals anyway.
Thanks again for the thought.
I wonder if it would be an error if an EA did not handle re-quotes? And can an EA be removed from the Championship because of it?
It is difficult to detect this problem neither in the Strategy Tester, nor in demo mode or even in microreal-time. At least it did not occur at least once during one month of testing. However, it seems that organizers have decided to feed us with requotes in this championship. I judge it as an Expert Advisor tried to close an order on a generally calm market but got requotes. And this despite the fact that RefreshRates() immediately precedes OrderClose(). Well, error 138 is received and the order keeps working. Of course, the logic is broken, but it is not too bad.
Gentlemen of the contestants, are your creatures ready to fight requotes?
If slippage = 10, I think re-quotes will be rare.
If slippage = 10, I think re-quotes will be rare.
That's where you are wrong, I have slippage = 5 , and look at the excerpt from the log:
One point above the requested closing price.