Returns Time value for the bar of specified symbol with timeframe and shift.
long itimeb(int period, // timeframe
int bar // shift
);
Parameters period [in] Timeframe. It can be any of PERIOD_ enumeration values. bar [in] Index of the value taken from the indicator buffer (shift relative to the
current bar the given amount of periods ago). Returned value Time value for the bar of specified symbol with timeframe and shift. Note For the current chart, the information about open bar times is in the timea[]
predefined array. Example:
Printf("Current bar for USDCHF H1: ",itimeb(PERIOD_H1,0),", ",
iopen(PERIOD_H1,0),", ",
ihigh(PERIOD_H1,0),", ", ilow(PERIOD_H1,0),", ",
iclose(PERIOD_H1,0),", ", ivolume(PERIOD_H1,0));