Stop removing the EA and causing your own problem.
HosseinKOGO: When I want restart VPS, I always Remove EA from chart, restart the VPS and attach the EA again to the chart.
HosseinKOGO #: I can not understand you. Please clarify what you mean.
HosseinKOGO #: I can not understand you. Please clarify what you mean.
What part of “Stop removing the EA” is unclear? Just close the terminal. On restart, the charts and your EA will be there.
Of course, it will. The EA is still attached to the chart(s). What part of “Stop removing the EA” was unclear?
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi pals,
Hope you are having a nice day
When I want restart VPS, I always Remove EA from chart, restart the VPS and attach the EA again to the chart. However this time I forgot to remove(and reattach) and my data from last run which I always recover with OnInit(), corrupted :(
For now, I have 2 questions:
First, to just be cleared, what would happen by just closing the MT4 without removing the EA? Doesn't the OnDeinit() run? In this case after restarting the MT4, doesn't the OnInit() run before OnTick()?
Second, How can I make it automatically in my EA so if I forget to remove(and reattach), the EA run my GVs recovery? Any idea please?