This function delivers the values for the open, high and low of the current day i.e. session.
CurrentDayOHL is intended for use with intraday data series.
See , .
Parameter
inSeries Input data series for the indicator
Return value
double
When using this method with an index (e.g. CurrentDayOHL.CurrentOpen[int barsAgo] ), the value of the indicator will be issued for the referenced bar.
Usage
CurrentDayOHL()
CurrentDayOHL(IDataSeries inSeries)
int barsAgo = 0;
//For the open value
CurrentDayOHL().CurrentOpen[ barsAgo]
CurrentDayOHL(IDataSeries inSeries).CurrentOpen[ barsAgo]
//For the high value
CurrentDayOHL().CurrentHigh[ barsAgo]
CurrentDayOHL(IDataSeries inSeries).CurrentBarHigh[ barsAgo]
//For the low value
CurrentDayOHL().CurrentLow[ barsAgo]
CurrentDayOHL(IDataSeries inSeries).CurrentLow[ barsAgo]
Visualization
Example
Print("The low of the current session is at " + CurrentDayOHL().GetCurrentBar().Low[0]);