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  
How many character can it name of global variables? (max. enable long name)
honest_knave
Moderator
2330
honest_knave  

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  
I have error abou 66 characters....
honest_knave
Moderator
2330
honest_knave  
You'll need to post some code
Pavel Soukup
560
Pavel Soukup  

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  
So, it is a standard limit of 64 characters ...
honest_knave
Moderator
2330
honest_knave  

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