Bars

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Common > Charts > ChartBars >

Bars

Previous page Return to chapter overview Next page

Definition

Represents the data returned from the historical data repository in relation to the primary ChartBars object configured on the chart.  See also Bars

 

Property Value

A Bars object

 

Syntax

ChartBars.Bars

 

Examples

ns


protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
{
  if(ChartBars != null && ChartBars.Bars != null)
  {
    Print("The configured bars period type represented on the chart is" + ChartBars.Bars.BarsPeriod.BarsPeriodType);
  }
}