Hello, I hope everyone is keeping safe and well. I have written an EA which uses Terminal global variables. What happens to these variables when you migrate the EA to a VPS with "migrate all" option? I am guessing the variables get copied to the VPS along with the Terminal. My question is if I update my EA and do a "migrate all" again, do the variable values on the VPS get overwritten by the new values from the local terminal?
- Files and Terminal Global Variables on VPS
- MQL5 VPS migration with opened position
- "MT5 Terminal Update: MetaTrader VPS Migration Necessary?"
Khima Hathia Gorania:
Hello, I hope everyone is keeping safe and well. I have written an EA which uses Terminal global variables. What happens to these variables when you migrate the EA to a VPS with "migrate all" option? I am guessing the variables get copied to the VPS along with the Terminal. My question is if I update my EA and do a "migrate all" again, do the variable values on the VPS get overwritten by the new values from the local terminal?
Hello, I hope everyone is keeping safe and well. I have written an EA which uses Terminal global variables. What happens to these variables when you migrate the EA to a VPS with "migrate all" option? I am guessing the variables get copied to the VPS along with the Terminal. My question is if I update my EA and do a "migrate all" again, do the variable values on the VPS get overwritten by the new values from the local terminal?
As I understand it form https://www.mql5.com/en/articles/994 Global variable values are NOT migrated from the terminal...
Terminal global variables are not migrated to the virtual hosting. If you need to initialize lots of variables when starting a program, you can use reading from files that can be passed using the "#property tester_file" directive.
![Documentation on MQL5: Global Variables of the Terminal Documentation on MQL5: Global Variables of the Terminal](https://c.mql5.com/36/38/documentation-on-mql5-global-variables.png)
Documentation on MQL5: Global Variables of the Terminal
- www.mql5.com
Global variables are kept in the client terminal for 4 weeks since the last access, then they will be deleted automatically. An access to a global variable is not only setting of a new value, but reading of the global variable value, as well.
![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