![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
The computer is an idiot. © M.M. Botvinnik.
So, pretend to be an idiot and try to pass the algorithm from the point of view of an idiot and with the parameters set by an idiot. It is from this point of view that the autovalidator fits. Pay attention to the "feedback". Does the Expert Advisor notify you about errors?
I finally figured it out, maybe someone can help, in general, the Soviet has only when the MM was checked for a minimum lot, and so hardcore set lot = 0.01, well, in the validator deposit turns out to be $ 1 (found this information in one of the topics), respectively, it uses lot 0.001 (or so) to trade and because I always had in one place was lot 0.01, respectively, he did not have enough money and the robot does not trade)
I finally figured it out, maybe someone will help, in general, the board only when the MM was checked for a minimum lot, and so hardcore set lot = 0.01, well, in the validator deposit turns out to be $ 1 (found this information in one of the topics), respectively, it uses the lot 0.001 (or so) to trade and because I always had in one place a lot of 0.01, respectively, he did not have enough money and the robot does not trade)
I would like to bring it up again. Your answer does not help me. I have a volume calculation and if everything does not fit the minimum volume is used:
In the end, put the minimum volume at once without any calculations. Then comes the margin check... and no trading operations.
Yesterday I stumbled upon a forum answer saying that sometimes one and the same code can be sent after some time and it will pass. Time passed, it does not send.
What to do, 2 weeks ago this volume detection function went through and since then it hasn't changed in any way!!!
I would like to bring it up again. Your answer doesn't help me. I have a volume calculation, and if everything doesn't fit then the minimum volume is used:
In the end, put the minimum volume at once without any calculation. Then comes the margin check... and no trading operations.
Yesterday I stumbled upon a forum answer saying that sometimes one and the same code may be sent after some time and it will pass. The time has passed, it doesn't send.
What to do, 2 weeks ago this volume detection function went through and since then it hasn't changed in any way!!!
I'm going to be an old-timer. With such a rating, numbers under the avatar, and having a problem you somehow did not see the topic where it was discussed. And that's where the solution was found.
I'm going to be an old-timer. With such a rating, numbers under the avatar, and having a problem you somehow did not see the topic where it was discussed. And there you have found a solution.
Among the peoples of Russia there are those who pray to pagan gods, and those who answer
I answered, but I am not a pagan god. I think this is a temporary solution to the problem, hopefully it will be fixed soon.
Used ForceStop in doubtful places. Further it will appear in the report as division with zero and the exact location of this error.
Example in my case:
Bro, it helped me to move all the variables into the code header.
void OnDeinit
}
And in the ResetLastError() init;
I don't know what worked, but something like this
It helps me to simply change (edit) a few lines in the code.
Or just add blank lines, and recompile again.
I think it's some kind of bug on the server.
Or just add blank lines, and recompile again.
Confirmed, sometimes just recompile and it works.
Confirmed, sometimes just recompile and it passes.
It's not because I recompiled it, it's because the test started from a different date. And I noticed such a bug, if you slip something that has already been, then testing does not happen, and immediately gives the previous test result. So, do not be fooled by such crutches. Try to make it normal. If something is missing or parameters are invalid, report it via Print and everything will be correct.