Download MetaTrader 5

Index number of candles

To add comments, please log in or register
Did you like the article? Share it with your friends!
mostafalotfi
185
mostafalotfi 2014.03.22 09:30 

Hi

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

Alain Verleyen
Moderator
30707
Alain Verleyen 2014.03.22 12:20  
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
185
mostafalotfi 2014.03.22 14:27  
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
Moderator
30707
Alain Verleyen 2014.03.22 14:44  
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
185
mostafalotfi 2014.03.22 14:56  
angevoyageur:
I just give you a link with an example.
is it really this much complex? iBarshift was so simple , im confused
Alain Verleyen
Moderator
30707
Alain Verleyen 2014.03.22 15:41  
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
185
mostafalotfi 2014.03.22 17:21  
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
Moderator
30707
Alain Verleyen 2014.03.22 18:41  
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
185
mostafalotfi 2014.03.23 07:04  
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
To add comments, please log in or register