Prior Day OHLC
Previous Topic  Next Topic 

Definition

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

Syntax
PriorDayOHLC()
PriorDayOHLC(IDataSeries inputData)

Returns prior session open value
PriorDayOHLC().PriorOpen[int barsAgo]
PriorDayOHLC(IDataSeries inputData).PriorOpen[int barsAgo]

Returns prior session high value
PriorDayOHLC().PriorHigh[int barsAgo]
PriorDayOHLC(IDataSeries inputData).PriorHigh[int barsAgo]

Returns prior session low value
PriorDayOHLC().PriorLow[int barsAgo]
PriorDayOHLC(IDataSeries inputData).PriorLow[int barsAgo]

Returns prior session close value
PriorDayOHLC().PriorClose[int barsAgo]
PriorDayOHLC(IDataSeries inputData).PriorClose[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 value of the prior session low
double value = PriorDayOHLC().PriorLow[0];
Print("The prior session low value is " + value.ToString());


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