iBars different values
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.
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!