queation in EA

 

hi

i have problem in EA.

in program that use for currency(gbpusd) i want an information from (gbpchf) chart like" iopen("gbpchf",PERIOD_H4,0)" but this order just is doing at order (print()) buty in order (if()) is not doing, why???????

please help me