PriceSeries<double>

Definition

Represents historical data as an ISeries<double> interface which can be used for custom NinjaScript object calculations.

note image

Note

In most cases, you will access the historical price series using a core event handler such as OnBarUpdate. For more advanced developers, you may find situations where you wish to access historical price series outside of the core event methods, such as your own custom mouse click. In these advanced scenarios, you may run into situations where the barsAgo pointer is not in sync with the current bar, which may cause errors when trying to obtain this information. In those cases, please use the Bars.Get...() methods with the absolute bar index, e.g., Bars.GetClose(), Bars.GetOpen(), etc.

Single ISeries<double>

CloseA collection of historical bar close prices.
HighA collection of historical bar high prices.
InputA collect of the the main historical input values.
LowA collection of historical bar low prices.
MedianA collection of historical bar median prices.
OpenA collection of historical bar open prices.
TypicalA collection of historical bar typical prices.
ValueA collection of historical references to the first object (Values[0]) in the indicator.
WeightedA collection of historical bar weighted prices.

Multi-Time Frame ISeries<double>

ClosesHolds an array of ISeries<double> objects holding historical bar close prices.
HighsHolds an array of ISeries<double> objects holding historical bar high prices.
InputsHolds an array of ISeries<double> objects holding main historical input values.
LowsHolds an array of ISeries<double> objects holding historical bar low prices.
MediansHolds an array of ISeries<double> objects holding historical bar median prices.
OpensHolds an array of ISeries<double> objects holding historical bar open prices.
TypicalsHolds an array of ISeries<double> objects holding historical bar typical prices.
ValuesHolds an array of ISeries<double> objects holding the indicator's underlying calculated values.
WeightedsHolds an array of ISeries<double> objects holding historical bar weighted prices.