inverse of iChartShift() function

 

Please what is the inverse of the following function:

iBarShift(NULL,PERIOD_D1,DateTime);

I wish to get the date of a candle. Thanks in advance.

 
macpee: Please what is the inverse of the following function: I wish to get the date of a candle.
iTime() function, or Time[] predefined series array!
iTime - Timeseries and Indicators Access - MQL4 Reference
iTime - Timeseries and Indicators Access - MQL4 Reference
  • docs.mql4.com
Time value for the bar of specified symbol with timeframe and shift. If local history is empty (not loaded), function returns 0. To check errors, one has to call the GetLastError() function.
 
Thanks Fernando