Firstly, in this case you won't forget it in the future because this check will always be present.
Secondly, this check requires so little time that it will not give any optimization of the code and will not speed up the process. I.e. either check for "Allowed to trade" and enter the function or enter and check "Allowed to trade".
Thirdly, I agree about the exvity, it should be put separately. I sawed off this piece. And a lot of things removed. Now the function is short in general.
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.
Boris, it's simple.
Firstly, in this case you won't forget it in the future because this check will always be present.
Secondly, this check requires so little time that it will not give any optimization of the code and will not speed up the process. I.e. either check for "Allowed to trade" and enter the function or enter and check "Allowed to trade".
Thirdly, I agree about the exvity, it should be put separately. I sawed off this piece. And a lot of things removed. Now the function is short in general.
That's great! You didn't make it to the demo?