Hi coders, kindly advise and help.

I would like to get the shift of smaller TF starting from bigger TF, but the output of different pairs are different, could you please advise :-

1) What is the solution to get the correct output results ?

2) Is this the bug of mq4 / MT4 and can never be resolved ?

Thanks

Inserted Code

int tTF=5; int b0M1Sf=iBarShift(Symbol(),1,iTime(Symbol(),tTF,0),true); int b1M1Sf=iBarShift(Symbol(),1,iTime(Symbol(),tTF,1),true); int b2M1Sf=iBarShift(Symbol(),1,iTime(Symbol(),tTF,2),true); {Alert(Symbol()+" M"+IntegerToString(tTF)+" Bar0/Bar1/Bar2 : "+IntegerToString(b0M1Sf)+" / "+IntegerToString(b1M1Sf)+" / "+IntegerToString(b2M1Sf))}

I would like to get the shift of smaller TF starting from bigger TF, but the output of different pairs are different, could you please advise :-

1) What is the solution to get the correct output results ?

2) Is this the bug of mq4 / MT4 and can never be resolved ?

Thanks