How to detect the first bar avaiable of the data?

 

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 if you look in the editor's reference before you are asking here?
 
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. 

 

Don't double post

 
Sorry WHRoeder. Was an urgency, Im sorry!
Reason: