Tonight I optimised an EA on minutes with a test period of 5 years. Internet was not connected. In the morning after internet connection I repeated the test and got different results. Every time Metatrader is connected, are all quotes updated or only the missing ones?
In my opinion, this function lacks the closing time of the last profitable trade.
Without it, all losing trades in the history are recalculated, not only the last ones.
So, it should be like this:
Isn't it?
If I have to divide by 0 in the loop, will the calculation stop? The loop will not continue?
I have them too, but to exclude 0 you have to write lots of them everywhere.
so what is the answer to the question?
I have them too, but to exclude 0 you have to write lots of them everywhere.
So what's the answer to the question?
In the logbook it will always say "Division by 0". And no action ....
Only the loop knows what's going on in the loop itself))))
The Expert Advisor will not work.
Why do they often write Symbol() instead of NULL in functions? e.g. iClose(Symbol(), TF, i)
so nothing will happen. The function Funk2 - does not return any value. it is void