Global variables in MT5 and restart Windows - page 2

 
Michael Charles Schefe #: i can also confirm that GVs and both mt4/5 do different behaviours how you shut it down, whether that is pressing the x at top right corner of window OR clicking close under File menu, or using the windows shut down process. The last one is very dangerous on the later versions of windows... and can screw up all settings and templates and charts on all your terminals when not shutting down correctly, including restart. I think the moderators need to try these out so that they can teach themselves something.

Teach us what exactly?

Have we not already advised users to "flush" the GTV to disk, so as to prevent the problem with those sorts of irregularities?

That means that we are well aware of the potencial issues, but we are also aware that we have no sway in MetaQuotes development process.

So, flush your GTV do disk regularly!

 
you should never restart the windows, but if that happens once you open the terminal everything should still be there. 
 
JamesWoods #:

All i can tell you is this from bad experience which lost me money from EA that i bought that was using MT5 global variables 

If you want peace of mind, dont have anything to do with mt5 global variables. IN my case the data only lasted for a month each time and i did not realise this so all my EA was getting lost and positions were not managed.

Nobody including the makers of mt5 seems to have a clue about the lifestyle of global variables, if you intend to trade with  real money, dont use any EA that relies on global variables.

Store all your data in files folder if you dont want to loose your data

Thanks for you opinie.

 
Fernando Carreiro #:

Teach us what exactly?

Have we not already advised users to "flush" the GTV to disk, so as to prevent the problem with those sorts of irregularities?

That means that we are well aware of the potencial issues, but we are also aware that we have no sway in MetaQuotes development process.

So, flush your GTV do disk regularly!

I confirm, when I have add flush function in the code where globals change it work like it should, same way like in MT4.

One more time thanks for help in solving problem.

 
LJ #:
you should never restart the windows, but if that happens once you open the terminal everything should still be there. 

When you run program on VPS you have limit control, there for important sometime simulate restart to figure out how your program stable with that...