Different SHIFT Number for different currency pairs

 

Hi

I have an expert that works with  candles in the past for two or three currency pairs.

For example I want to know the open price for GBPJPY for the candle of 2019.01.01 11:02. 

using the code below:(FirstPair and some_date are defined in the code):

 int      shift=iBarShift(FirstPair,PERIOD_M1,some_time);

This piece of code gives me a number 26543

When I change the currency pair to GBPAUD for the same date I have the number: 26496 

When I change the currency pair to AUDJPY for the same date I have the number: 22033


 The numbers have to be the same. Whats the problem

 
Morteza Khorasani:

 The numbers have to be the same. Whats the problem

Why do you think that they have to be the same?

There are often missing bars on the M1 chart, but they may not be missed for all symbols.

 
Keith Watford:

Why do you think that they have to be the same?

There are often missing bars on the M1 chart, but they may not be missed for all symbols.

the difference between the number for AUDJPY and GBPJPY is about 4500.

You mean it is natural to have 4500 missed bar for AUDJPY in a month?

 
Morteza Khorasani:

the difference between the number for AUDJPY and GBPJPY is about 4500.

You mean it is natural to have 4500 missed bar for AUDJPY in a month?

I have no idea. Other than counting them it is not easy to check.

Reason: