What does the EA remember when restarting MT4/5?
-
Hello everybody!
Please someone to assist me.
I need to know which blocks will remember their data when I restart the platform (MT4 MT5)
I know it wont remember the variables, but I don't know if some of the blocks it will, for example the followings:
-
Every "n" bars
-
Check consecutive losses
-
Set Flag (numeric) (true-false) or (textual)
-
Counter: pass "n" times
-
Counter: Count "n", then pass
Thank you in advance
Hola a todos!
Por favor, alguien que me ayude.
Necesito saber qué bloques recordarán sus datos cuando reinicie la plataforma (MT4 MT5)
Sé que no recordará las variables, pero no sé si algunos de los bloques lo harán, por ejemplo los siguientes:
-
Every "n" bars
-
Check consecutive losses
-
Set Flag (numeric) (true-false) or (textual)
-
Counter: pass "n" times
-
Counter: Count "n", then pass
Gracias de antemano
-
-
None will, blocks that do the calculation there and then don't need to, other than that only something that saves data to a global (terminal) variable can remember.
-
Thank you very much @jstap
-
Another way to the EA remember for example a price level even if I restart MT4 could be draw a line in the chart and use this line, I guess should work, just to be carefull to do not delete or move the draw or create one non-erasable.
-
Or just draw the line in your EA before using, generally using the price rather than a visible object makes more sense, but these will be deleted when closing terminal/removing EA from chart, so a global variable would need to be used, you could then use this price to draw the line.
-
@jstap Ok, thank you, I will do everything with global variables to be safe. I didn't know draws will be removed.
My problem is that I need to restart the VPS almost once a week do to updates, and some trades still open and I need to keep few variables the same, distance, number of losing trades and so on. I know how to do it thanks to your post, but I couldn't yet, (I'm on it).
And all my EA's are working with te block "Check consecutive losses" that I need to modify knowing this.
-
They are not always removed, but at times I have restarted computer, loaded MT and line's etc have been missing.