BarsPeriod
<< Click to Display Table of Contents >> BarsPeriod |
![]() ![]() ![]() |
The primary Bars object time frame (period type and interval).
Warning: This property should NOT be accessed within the OnStateChange() method before the State has reached State.DataLoaded |
A Bars series object representing the time frame of the Bars.
Syntax
BarsPeriod.BarsPeriodType |
The type of bars used for the period, as well as the enumeration value under which the any of the 14 default NinjaTrader types are registered. Possible values include:
|
|||||||||||||||||||||||||||||||
BarsPeriod.BaseBarsPeriodType |
Only relevant for HeikenAshi, Kagi, LineBreak, PointAndFigure and Volumetric Bars objects. Same possible values as BarsPeriod.BarsPeriodType |
|||||||||||||||||||||||||||||||
BarsPeriod.BaseBarsPeriodValue |
Only relevant for HeikenAshi, Kagi, LineBreak, PointAndFigure and Volumetric Bars objects. Determines an integer value representing the basePeriodTypeValue parameter |
|||||||||||||||||||||||||||||||
BarsPeriod.MarketDataType |
The data type used to build the bars. Possible values: MarketDataType.Ask |
|||||||||||||||||||||||||||||||
BarsPeriod.PointAndFigurePriceType |
Only relevant for PointAndFigure Bars objects. Possible values: |
|||||||||||||||||||||||||||||||
BarsPeriod.ReversalType |
Only relevant for Kagi Bars objects. Possible values: |
|||||||||||||||||||||||||||||||
BarsPeriod.Value |
Determines an integer value representing the period parameter. •When using Kagi Bars objects this represents the "reversal" parameter •When using LineBreak Bars objects this represents the "lineBreakCount" parameter •When using PointAndFigure Bars objects this represents the "boxSize" parameter •When using Renko Bars objects this represents the "brickSize" parameter |
|||||||||||||||||||||||||||||||
BarsPeriod.Value2 |
Only relevant for PointAndFigure Bars objects. Determines an integer value representing the "reversal" parameter. |
|
---|
// Calculate only if there is a 100 tick chart or greater |
|
---|
protected override void OnStateChange() |