Trabajo finalizado
Tarea técnica
Hello people,
i´m requesting a script to save data and load them back in. So for example:
my indicator uses 2 different modes of trading. High risk and low risk. That is chosen by a ENUM.
if i reload the indicator in a new window the settings are changed to default. So that's why i want to save them.
it need to work like this:
check if file exist, if none make one. its located in the MQL5 map under indicators/subwindow/"file here"
you have 6 variable. 3 in the script and 3 you save.
if(var1!=VAR1) save variable in file. So it need to read the variable in the file and if it's different save the new variable to file.
the variable it reads from the file is the one used in the program. it happens in the INIT section so like:
var1 = Readfile for VAR1.
i hope someone got time to help me for this very small script?
greetz Wtrader