Skip to content

ChartArrow.ShowAngle

property · ChartArrow · cAlgo.API

DesktopCLICloud

Defines the arrow angle.

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

bool ShowAngle {get; set;}
chartArrow.ShowAngle: bool

Returns bool

Examples

var arrow = Chart.DrawArrow("arrow", Bars.OpenTimes.Last(20), Bars.LowPrices.Last(20), Bars.OpenTimes.LastValue, Bars.HighPrices.LastValue, Color.Red);
arrow.ShowAngle = true;
Print("Arrow angle shown: {0}", arrow.ShowAngle);
arrow = api.Chart.DrawArrow("arrow", api.Bars.OpenTimes.Last(20), api.Bars.LowPrices.Last(20), api.Bars.OpenTimes.LastValue, api.Bars.HighPrices.LastValue, Color.Red)
arrow.ShowAngle = True
api.Print(f"Arrow angle shown: {arrow.ShowAngle}")