Index number of candles

mostafalotfi
186

Hi

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

Alain Verleyen
42596
mostafalotfi:

Hi

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

iBarShift
mostafalotfi
186
mostafalotfi  
angevoyageur:
iBarShift

hi

 

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

Alain Verleyen
42596
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.
mostafalotfi
186
mostafalotfi  
angevoyageur:
I just give you a link with an example.
is it really this much complex? iBarshift was so simple , im confused
Alain Verleyen
42596
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.
mostafalotfi
186
mostafalotfi  
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

Alain Verleyen
42596
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.

mostafalotfi
186
mostafalotfi  
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