Download MetaTrader 5

Save variables before metatrader shutdown

To add comments, please log in or register
Ulrich
77
Ulrich  

Hi,

is it possible to save variables which are calculated in an expert advisor even if i close

the metatrader and restart the programm?

In this case it would be very nice to have the parameters!

If this is not possible is there a chance to whrite the parameters into the log file in case of a programm shut down?

AiGelb

Simon Gniadkowski
Moderator
18056
Simon Gniadkowski  
AiGelb:

Hi,

is it possible to save variables which are calculated in an expert advisor even if i close

the metatrader and restart the programm?

In this case it would be very nice to have the parameters!

If this is not possible is there a chance to whrite the parameters into the log file in case of a programm shut down?

AiGelb

Yes you can use files to save the data or Global Variables if the data is just numeric.
Ulrich
77
Ulrich  

Do you have a short guideline how to use it?

Data are just ints and doubles...

Simon Gniadkowski
Moderator
18056
Simon Gniadkowski  
AiGelb:

Do you have a short guideline how to use it?

Data are just ints and doubles...

Yes, here: Read Me
Alain Verleyen
Moderator
35040
Alain Verleyen  
AiGelb:

Do you have a short guideline how to use it?

Data are just ints and doubles...


https://book.mql4.com/variables/globals
To add comments, please log in or register