How to refresh data on multiple symbols in One script

 
Hi,

I have a script which keeps on calling RefreshRates() in a while loop. The script is executed on the USDJPY chart. RefreshRates() returns TRUE only if a new tick is received for the Symbol() in the chart. That is, USDJPY in this case. How can I make RefreshRates() return TRUE for other currency pairs other than USDJPY? I want to monitor tick data for several currency pairs on One Script.

Could you please include an example?
 
RefreshRates refreshes current environment of EA only. Current environment is snapshot of current chart's data.

To access multiple symbols just call iTime, iOpen, iClose etc functions and get latest data automatically.