inverse of iChartShift() function

To add comments, please log in or register
macpee
581
macpee  

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.

Fernando Carreiro
4983
Fernando Carreiro  
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.
macpee
581
macpee  
Thanks Fernando
To add comments, please log in or register