Download MetaTrader 5

How many character can it name of global variables? (max. enable long name)

To add comments, please log in or register
Pavel Soukup
560
Pavel Soukup 2015.02.13 09:21 
How many character can it name of global variables? (max. enable long name)
honest_knave
Moderator
2419
honest_knave 2015.02.13 09:45  

Never seen a limit published. I just tried one with 402 characters, and it worked fine.

Why don't you experiment and report back if you find a limit? 

Pavel Soukup
560
Pavel Soukup 2015.02.13 10:15  
I have error abou 66 characters....
honest_knave
Moderator
2419
honest_knave 2015.02.13 10:16  
You'll need to post some code
Pavel Soukup
560
Pavel Soukup 2015.02.13 10:30  

a) GlobalVariableSet("123456789_123456789_123456789_123456789_123456789_123456789_xxxx",0);

result: glob. var:  123456789_123456789_123456789_123456789_123456789_123456789_xx value 0,  I cannot delete key F3, I have to use mql code GlobalVariableAll(); 

 

b) GlobalVariableSet("123456789_123456789_123456789_123456789_123456789_123456789_1x",0); 

 result: glob. var:  123456789_123456789_123456789_123456789_123456789_123456789_1x value 0, I can delete key F3 and delete button

 

on my pc (XP, build 765):

SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2015.02.13 10:38  
So, it is a standard limit of 64 characters ...
honest_knave
Moderator
2419
honest_knave 2015.02.13 10:38  

Interesting - you're quite right that my 402 character GV could not be deleted from F3 (I was working entirely in code).

Might be worth mentioning it to the service desk. 

To add comments, please log in or register