Different SHIFT Number for different currency pairs

To add comments, please log in or register
Morteza Khorasani
168
Morteza Khorasani  

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

Keith Watford
Moderator
20380
Keith Watford  
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.

Morteza Khorasani
168
Morteza Khorasani  
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?

Keith Watford
Moderator
20380
Keith Watford  
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.

To add comments, please log in or register