Current Day OHL
Previous Topic  Next Topic 

Definition

The current day (session) open, high and low values.

Syntax
CurrentDayOHL()
CurrentDayOHL(IDataSeries inputData)

Returns current session open value
CurrentDayOHL().CurrentOpen[int barsAgo]
CurrentDayOHL(IDataSeries inputData).CurrentOpen[int barsAgo]

Returns current session high value
CurrentDayOHL().CurrentHigh[int barsAgo]
CurrentDayOHL(IDataSeries inputData).CurrentHigh[int barsAgo]

Returns current session low value
CurrentDayOHL().CurrentLow[int barsAgo]
CurrentDayOHL(IDataSeries inputData).CurrentLow[int barsAgo]


Return Type
double; Accessing this method via an index value [int barsAgo] returns the indicator value of the referenced bar.


Parameters

inputData

Indicator source data (?)


Examples

// Prints the current value of the session low
double value = CurrentDayOHL().CurrentLow[0];
Print("The current session low value is " + value.ToString());


Source Code
You can open up the indicator source code via the NinjaScript Editor.