ChartFibonacciRetracement.Y1
property · ChartFibonacciRetracement · cAlgo.API
DesktopCLICloud
Gets or sets the value 1 on the Y-axis.
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
double Y1 {get; set;}
chartFibonacciRetracement.Y1: float
Returns double
Examples
var retracement = Chart.DrawFibonacciRetracement("retracement", Bars.OpenTimes.Last(50), Bars.HighPrices.Last(50), Bars.OpenTimes.LastValue, Bars.LowPrices.LastValue, Color.Red);
retracement.Y1 = Bars.HighPrices.Last(50) + 5 * Symbol.PipSize;
Print("Retracement 100% price: {0}", retracement.Y1);
retracement = api.Chart.DrawFibonacciRetracement("retracement", api.Bars.OpenTimes.Last(50), api.Bars.HighPrices.Last(50), api.Bars.OpenTimes.LastValue, api.Bars.LowPrices.LastValue, Color.Red)
retracement.Y1 = api.Bars.HighPrices.Last(50) + 5 * api.Symbol.PipSize
api.Print(f"Retracement 100% price: {retracement.Y1}")