ToChartString()

View as Markdown

Definition

Returns a formatted string representing the ChartBars.Properties.Label property, BarsPeriod Value, and BarsPeriodType name.

The property returned is dependent on a user configured Data Series property, and results may return differently than expected. See also Bars.ToChartString() for a return value which is not subject to user-defined variables.

Syntax

ChartBars.ToChartString()

Return Value

A string value that represents the ChartBars label and configured bars period.

Parameters

This method does not accept any parameters.

Examples

1protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
2{
3 if (ChartBars != null)
4 Print(ChartBars.ToChartString()); // My Favorite Instrument (1 Minute)
5}