Download MetaTrader 5
To add comments, please log in or register
How to earn at MQL5.community? Come and find out!
Ulrich
77
Ulrich 2014.01.20 08:57 

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
17998
Simon Gniadkowski 2014.01.20 09:29  
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 2014.01.20 09:55  

Do you have a short guideline how to use it?

Data are just ints and doubles...

Simon Gniadkowski
Moderator
17998
Simon Gniadkowski 2014.01.20 10:01  
AiGelb:

Do you have a short guideline how to use it?

Data are just ints and doubles...

Yes, here: Read Me
Alain Verleyen
Moderator
30635
Alain Verleyen 2014.01.20 14:56  
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