Index number of candles

 

Hi

could you please let me know how can i find the index number of candles in MQL5 based on a time? 

 
mostafalotfi:

Hi

could you please let me know how can i find the index number of candles in MQL5 based on a time? 

iBarShift
 
angevoyageur:
iBarShift

hi

 

could you please explain it little more? or give me one simple example? i just moved from MQL4 to MQL5  

 
mostafalotfi:

hi

 

could you please explain it little more? or give me one simple example? i just moved from MQL4 to MQL5  

I just give you a link with an example.
 
angevoyageur:
I just give you a link with an example.
is it really this much complex? iBarshift was so simple , im confused
 
mostafalotfi:
is it really this much complex? iBarshift was so simple , im confused

What is so hard ? It's exactly the same as mql4.

      shift0=iBarShift(_Symbol,PERIOD_M15,searchDate,exacts);
You only have to include the .mqh file provided.
 
angevoyageur:

What is so hard ? It's exactly the same as mql4.

You only have to include the .mqh file provided.i 

 i found it how to use it , thanks

honestly when you compare it with MQL4 , which one is more complex :D

 
mostafalotfi:

 i found it how to use it , thanks

honestly when you compare it with MQL4 , which one is more complex :D

Honestly you don't have a way to know. You can't see the implementation of iBarShift within mql4.

 
angevoyageur:

Honestly you don't have a way to know. You can't see the implementation of iBarShift within mql4.

im using iBarshift in MQL4 alot :D