ChartArrow.ExtendToInfinity
property · ChartArrow · cAlgo.API
DesktopCLICloud
Defines if the Arrow extends to infinity.
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 ExtendToInfinity {get; set;}
chartArrow.ExtendToInfinity: 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.ExtendToInfinity = true;
Print("Arrow extends to infinity: {0}", arrow.ExtendToInfinity);
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.ExtendToInfinity = True
api.Print(f"Arrow extends to infinity: {arrow.ExtendToInfinity}")