Deleting Global Variables ?

Post Reply
ianp
Trader
Posts: 83
Joined: Tue Nov 15, 2011 9:58 pm

Deleting Global Variables ?

Post by ianp »

I am trying to delete Global variables in my Empty4 platform as there are hundreds of them from a long time ago .

Is there a utility/script that will delete them all at once ? as I can only seem to delete one at a time and it is taking ages ..

Thanks
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

Deleting Global Variables ?

Post by renexxxx »

ianp » Wed Jun 10, 2015 1:00 pm wrote:I am trying to delete Global variables in my Empty4 platform as there are hundreds of them from a long time ago .

Is there a utility/script that will delete them all at once ? as I can only seem to delete one at a time and it is taking ages ..

Thanks
Ian,
There is actually a function in MQL that does just that:

Code: Select all

   GlobalVariablesDeleteAll(); 
The attached script does the job.
You do not have the required permissions to view the files attached to this post.
ianp
Trader
Posts: 83
Joined: Tue Nov 15, 2011 9:58 pm

Deleting Global Variables ?

Post by ianp »

Thanks Rene ,,, your a star !!! :hi:
rivelrivella
Trader
Posts: 36
Joined: Mon Sep 01, 2014 8:54 pm

Deleting Global Variables ?

Post by rivelrivella »

ianp » Wed Jun 10, 2015 3:00 am wrote:I am trying to delete Global variables in my Empty4 platform as there are hundreds of them from a long time ago .

Is there a utility/script that will delete them all at once ? as I can only seem to delete one at a time and it is taking ages ..

Thanks
By the was in the same subject is there a way to transfer the exact status of actual global variables from a computer to another one and preserve the same actual state during the transfer : Useful to not interrupt the previous work of an EA for example
IT supposes also that another script could load the file in the new Empty4 global variables. Any idea ?
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

Deleting Global Variables ?

Post by renexxxx »

rivelrivella » Tue May 10, 2016 1:45 am wrote: IT supposes also that another script could load the file in the new Empty4 global variables. Any idea ?
Just go to File -> Open Data Folder, and navigate to the profiles\gvariables.dat file. Copy that file, and paste it into your new Empty4 instance, at the same location. You might have to restart the new Empty4 instance.

This will transfer all Global Variables from the old instance to the new instance, and it will overwrite/remove any Global Variables in the new instance (if there were any). If the latter is not desired, you have to do this a little bit more elegantly.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Deleting Global Variables ?

Post by SteveHopwood »

ianp » Wed Jun 10, 2015 3:00 am wrote:I am trying to delete Global variables in my Empty4 platform as there are hundreds of them from a long time ago .

Is there a utility/script that will delete them all at once ? as I can only seem to delete one at a time and it is taking ages ..

Thanks
Useful advice here for everyone coding/copying this stuff.

For a mass deletion of gv's from your crapform: F3; ctrl+a; click the Delete button.

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
Post Reply

Return to “Utilities”