Download MetaTrader 5

How to detect the first bar avaiable of the data?

To add comments, please log in or register
Luis
226
Luis  

We are in m1 timeframe, in the current bar meaning index=0. How can we get the index of the first bar avaiable of the data?

Thank you.

Carl Schreiber
7365
Carl Schreiber  
What if you look in the editor's reference before you are asking here?
Keith Watford
Moderator
10612
Keith Watford  
BeLikeWater:

We are in m1 timeframe, in the current bar meaning index=0. How can we get the index of the first bar avaiable of the data?

Thank you.

What do you mean by first?

If you mean the earliest, then it is Bars-1

In M1 especially, anticipate missing bars if you don't always have the M1 chart for the symbol open or have not accessed it regularly. 

whroeder1
16108
whroeder1  
Luis
226
Luis  
Sorry WHRoeder. Was an urgency, Im sorry!
To add comments, please log in or register