Prior Day OHLC

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Common > System Indicator Methods >

Prior Day OHLC

Previous page Return to chapter overview Next page


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


Note: Only use this indicator on intraday series.



PriorDayOHLC(ISeries<double> input)


Returns prior session open value
PriorDayOHLC().PriorOpen[int barsAgo]
PriorDayOHLC(ISeries<double> input).PriorOpen[int barsAgo]


Returns prior session high value
PriorDayOHLC().PriorHigh[int barsAgo]
PriorDayOHLC(ISeries<double> input).PriorHigh[int barsAgo]


Returns prior session low value
PriorDayOHLC().PriorLow[int barsAgo]
PriorDayOHLC(ISeries<double> input).PriorLow[int barsAgo]


Returns prior session close value
PriorDayOHLC().PriorClose[int barsAgo]
PriorDayOHLC(ISeries<double> input).PriorClose[int barsAgo]



Return Value

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





Indicator source data (?)





// 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 view this indicator method source code by selecting the menu New > NinjaScript Editor > Indicators within the NinjaTrader Control Center window.