Hi,
for an indicator I use I have to set the digits for each symbol. I do this in the code with e.g.
PHP Code:
if(Symbol()=="GBPJPY" || Symbol()=="EURJPY" || Symbol()=="USDJPY" ....and so on) nDigits = 2;
Now I like to spin these symbols off to an extern variable so that the user can set his symbols for himself. I thought to add sth. like
PHP Code:
extern string Symbols_nDigits2 = "GBPJPY,EURJPY,USDJPY";
How can I use this comma separated list of symbols and split it out so I can use it again in the indicator code like shown above (if(Symbol()=="GBPJPY"....)?
(Or is there a better solution for this "digits problem" out there?)
Thanks