iBars different values

 
I am trying to create an indicator that reads values from different currencies on the same time period. I simply outputted the values returned by iBars for the different currencies and they are all different which obviously leads to problems when trying to get old values. For example, when I output the following function calls:

iBars("EURUSD", PERIOD_M15)
iBars("USDJPY", PERIOD_M15)
iBars("EURJPY", PERIOD_M15)

I get the following values:

12977
2328
2139

I need them all to return a the same amount of bars so I can access data from them for calculations. Am I doing something wrong? How do I get them to be the same?

Thank you!
 
I have found the answer. I am placing it here for future reference. It seems iBars is dependant upon the chart that iBars is accessing being opened to the time frame that will load the desired number of candles. This means that if you want an iBars of 5000 for EURUSD 15 minute then you must open the EURUSD chart to the 15 minute time frame and scroll it back 5000 candles. Then you can use iBars in your indicator and achieve the expected results.