Historic loading

 

Hi,

How could we check if enough historic is available for indicator processing in a mql5 code ?

And if historic is not available, is there any functions I could use to load it automatically ?

Thanks !

Erwann.

 
On MT5: Unless the chart is that specific pair/TF, you must Synchronize the terminal Data from the Server.
          Timeseries and Indicators Access /  Data Access - Reference on algorithmic/automated trading language for MetaTrader 5