I have an indicator that is used in market analyzer .
This indicator reads an external file and does some processing.
I would like the reading of the file to occur only once . What I see is that the file is read for each instrument listed in the market analyzer .
I tried defining a varaibale as "int" or "bool" without the private decleration , hoping that it will be a global varaible, however I see that the variable gets initialized on each call of the indicator.
So is there a way to define a global variable ? alternatively how can I pass a variable that can be used by all instruments using this indicator?
Thanks
Comment