ChartObject.Comment
property · ChartObject · cAlgo.API
DesktopCLICloud
Gets or sets the comment for the chart object.
Environment behaviour
CLI — works differently. Created and kept with all its properties, but never drawn: the CLI displays no chart.
Cloud — works differently. Created and kept with all its properties, but never drawn: the cloud displays no chart.
Definition
string Comment {get; set;}
chartObject.Comment: str
Returns string — The comment.
Examples
var line = Chart.DrawHorizontalLine("support", Bars.LowPrices.LastValue, Color.Green);
line.Comment = "Daily support level";
Print("Comment: {0}", line.Comment);
line = api.Chart.DrawHorizontalLine("support", api.Bars.LowPrices.LastValue, Color.Green)
line.Comment = "Daily support level"
api.Print(f"Comment: {line.Comment}")