how to clear global variables on VPS

 

Hi Team,

I would like to clear the global variables created by my EA on the VPS, how do i do that as there is no way to access the server. I only have the following visibility of the VPS.

Need help

  VPS screen shot

 
Farrukh Khan:

Hi Team,

I would like to clear the global variables created by my EA on the VPS, how do i do that as there is no way to access the server. I only have the following visibility of the VPS.

Need help

 

The only workaround is to migrate with an empty chart so all traces of your EA are deleted and then perform your local EA setup and migrate to your MQL5 VPS again.

 
Eleni Anna Branou #:

The only workaround is to migrate with an empty chart so all traces of your EA are deleted and then perform your local EA setup and migrate to your MQL5 VPS again.

It didnt work... i tried loading an empty chart and then loaded the EA but kept getting the same issue...seems the global variables stays on the server, regardless... any other ideas?

 
Farrukh Khan #:

It didnt work... i tried loading an empty chart and then loaded the EA but kept getting the same issue...seems the global variables stays on the server, regardless... any other ideas?

That seems strange, I would guess that a clean migration would wipe off any traces of previous migrations to MQL5 VPS.

You can try deleting the global variables on your local MT5 terminal and then migrating only with an empty chart again, to see what happens.

 
Eleni Anna Branou #:

That seems strange, I would guess that a clean migration would wipe off any traces of previous migrations to MQL5 VPS.

You can try deleting the global variables on your local MT5 terminal and then migrating only with an empty chart again, to see what happens.

That i already tried. Is there any way i can access the VPS remotely? i mean like via Remote desktop outside the meta trader 5? Then i can open the meta trader on the VPS and delete the global variables manually. 

 
Farrukh Khan #:

That i already tried. Is there any way i can access the VPS remotely? i mean like via Remote desktop outside the meta trader 5? Then i can open the meta trader on the VPS and delete the global variables manually. 

No, this is not possible with MQL5 VPS, but it seems strange because no other user of MQL5 VPS in all these years has ever reported such an issue.

I wonder if your problem is not the global variables that you think they are not deleted from MQL5 VPS, but something else regarding your EA.

 
Farrukh Khan #:

That i already tried. Is there any way i can access the VPS remotely? i mean like via Remote desktop outside the meta trader 5? Then i can open the meta trader on the VPS and delete the global variables manually. 

i found another way, i created an EA, which only clears the global variables and then attached it to another currency, and upload it on the VPS, once the EA is executed, it clears the global variables on the VPS as well as my laptop...