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.
...
- Click the Start button and enter cmd in the Start search box.
- In the search results list, right-click Command Prompt and select Run as administrator.
- When you are prompted for user account-based control, click Continue.
- At the command prompt type powercfg.exe /hibernate off and press Enter.
- Type exit and press Enter to exit the command line.
To make hibernation available, carry out the following steps:powercfg.exe -h off
For example, forcing the script to terminate
ExpertRemove?
ExpertRemove?
ExpertRemove - does not stop script execution, or many operations have time to execute before stopping, or causes the script to freeze
zero divide - always stops the script from the moment it appears
ExpertRemove - does not stop script execution, or many operations have time to execute before stopping, or causes the script to freeze
I had the same symptoms once. then i fixed the code in the deinit phase. - Everything works.
Look for problems in your code. you are not analyzing the halt.
ExpertRemove?
Slava, why isn't there an analogue for indicators? I, for example, really need one. Is it a principal idea, or is it just lazy to do it?
I used to have the same symptoms. then I tweaked the code in the deinit phase. - It all worked.
Slava, why isn't there an analogue for the indicators? I, for example, really need one. Is it a principal idea, or is it just lazy to do it?
Instead of ExpertRemove(), they would make a universalProgramRemove() function.
there is a standard C language equivalent: exit
Consider
MQL5 Reference Manual: Deinit event is not generated for scripts and thereforeOnDeinit() cannot be used in scripts.