I want to fix this problem.
-

I want to fix this problem.
When the VPS shuts down or restarts or closes MT4 while the EA is running.
I opened the EA again, but the EA did not continue from the previous time.before the vps shuts down
1 = 0.03
2 = 0.03
Next sequence 3 = 0.03 *vps shut down firstAfter opening the program again
1 = 0.03
2 = 0.03
3 = 0.01 is not normal.
Odd number 3 must open normally = 0.03 *Normal
Thank you for all the answers.Thank you for the translation from Google.
-
The problem is that by closing the MT4 (ie the VPS) all variables are reinitiated. The only way to get what you need is storing the values of the variables just before the MT4 is closed and import them again as soon as it is started again.
-
@l-andorrà I'll try it out. Thank you
-
You're welcome.