Properties

View as Markdown

Definition

Represents various ChartBar properties configured from the Chart’s Data Series menu.

The properties on this page indicate what have been configured by the user, and is NOT necessarily representative of what is actually contained on the chart. For example, a user may have requested 120 days of chart data; however, only 60 days of bar data are actually returned from their provider.

ChartBars_DataSeries

These are UI properties which are designed to be set by a user. Attempting to modify these values through a custom script is NOT guaranteed to take effect.

Properties

PropertyDescription
AutoScaleA bool indicating if the Chart Data Series participates in the chart’s auto scaling methods
BarsBackAn int representing the Chart’s Data Series configured “Bars to load” when the RangeType.Bars is selected
BarsPeriodThe BarsPeriod object configured for Chart’s Data Series
CenterPriceOnScaleA bool indicating if the Chart’s Data Series should center the last traded price on the chart scale
ChartStyleThe ChartStyle object configured for the Chart’s Data Series
ChartStyleTypeA ChartStyleType enum indicating the type of chart style configured. System defaults include:
ChartStyleType.Box
ChartStyleType.CandleStick
ChartStyleType.LineOnClose
ChartStyleType.OHLC
ChartStyleType.PointAndFigure
ChartStyleType.KagiLine
ChartStyleType.OpenClose
ChartStyleType.Mountain
DaysBackAn int representing the Chart’s Data Series configured “Days to load” when the RangeType.Days is selected
DisplayInDataBoxA bool indicating if the Chart’s Data Series value should display in the Chart’s Data Box
DisplayNameA string representing the Chart’s Data Series instrument and period
FromA DateTime representing the Chart’s Data Series configured “Start Date” when the RangeType.CustomRange is configured.
InstrumentA string representing the Chart’s Data Series instrument
IsStableSessionA bool indicating the Chart’s Data Series Break EOD option is configured
IsTickReplayA bool indicating the Chart’s Data Series Tick Replay option is configured
LabelA string representing the configured Chart’s Data Series “Label”
LongExecutionBrushA Brush object representing the Chart’s Data Series “Color for execution - buy” brush configured
PaintPriceMarkerA bool indicating the Chart’s Data Series Price Marker “Visible” option is configured
PanelAn int indicating which Chart’s Data Series “Panel” the ChartBars are configured
PlotExecutionsA ChartExecutionStyle enum representing “Plot executions” option. Possible values include:
ChartExecutionStyle.DoNotPlot
ChartExecutionStyle.MarkersOnly
ChartExecutionStyle.TextAndMarker
PositionPenLoserA Stroke object representing the Chart’s Data Series “NinjaScript strategy unprofitable trade line”
PositionPenWinnerA Stroke object representing the Chart’s Data Series “NinjaScript strategy profitable trade line”
PriceMarkerA PriceMarker object representing various brushes used to paint the Chart’s Data Series “Price marker”
RangeTypeA RangeType enum indicating the “Load data based on” value configured on the Data Series. Possible values include:
RangeType.Bars
RangeType.Days
RangeType.CustomRange
ScaleJustificationA ScaleJustification enum indicating the “Scale justification” option configured on the Chart’s Data Series. Possible values include:
ScaleJustification.Right
ScaleJustification.Left
ScaleJustification.Overlay
ShortExecutionBrushA Brush object representing the Chart’s Data Series “Color for execution - sell” brush configured
ShowGlobalDrawObjectsA bool indicating the Chart’s Data Series “Show global draw object” option is configured
ToA DateTime representing the configured “End Date” used with any RangeType
TradingHoursBreakLineA TradingHoursBreakLine object representing the stroke used and TradingHoursBreakLineVisible enum used for the Chart’s Data Series “Trading hours break line”. Possible TradingHoursBreakLine.TradingHoursBreakLineVisible values include:
TradingHoursBreakLineVisible.AllSessions
TradingHoursBreakLineVisible.EodOnly
TradingHoursBreakLineVisible.Off
TradingHoursDataA string representing the Chart’s Data Series configured “Trading hours” option