Thread: How to code?
View Single Post
  #327 (permalink)  
Old 08-27-2007, 10:01 AM
Jagg Jagg is offline
Junior Member
 
Join Date: Oct 2006
Posts: 23
Jagg is on a distinguished road
comma separated extern variable(s)

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 onnDigits 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
Reply With Quote