Why does my EA no longer work correctly when I close and reopen my MT5 terminal?
-
I am in the process of making a trading assistant panel but when I close my terminal and open it again the ea no longer works correctly, in all the text editing boxes that I use to enter lots, tp, sl, or numerical values...
Can someone help me solve this please?

Here is the thread of this project (It is not complete yet):
-
To have those values they would need to be stored in something like a global variable, you could try this, on deinit move all values to the global variables, and on init populate the panel from the global variables.
-
@jstap Best regards, I really almost don't understand what you're saying but I'll try.
-
@jstap Just curious. Should each value (SL, TP,...) be stored into a separate global variable or can all of them be stored into the same one? Sorry for my ignorance.
-
That's ok, although you could save into 1, I wouldn't, I would use different, if in 1 you would have to strip out each value.
-
@jstap Ok. Thanks