Download MetaTrader 5

what's the meaning by the "." in a variable?

To add comments, please log in or register
Do you often publish source codes? Find out how to do that correctly!
bobo1974
216
bobo1974 2016.04.05 18:13 

hi

i saw an indicator with the below declaration

Any idea what's function of the " . " ?

Thanks 

######### 

extern int       TVI.r=12; 

Osama Shaban
1448
Osama Shaban 2016.04.05 19:21  

Let me tell you that you must to remove this "." and compile it again as new meta editors versions don't accept this notation.

so, TVI.r will be TVIr 

It will work for sure if you have no any other code errors like "$" or so. 

Kaleem Haider
74833
Kaleem Haider 2016.04.05 19:31  
bobo1974:

hi

i saw an indicator with the below declaration

Any idea what's function of the " . " ?

Thanks 

######### 

extern int       TVI.r=12; 

Its used in the structure definitions.  Metatrade 4 version 600+ do not take "." unless explicitly defined in structure.  If you want to recompile remove "." just like Osama mentioned.
bobo1974
216
bobo1974 2016.04.06 16:25  
thanks all for the replies
To add comments, please log in or register