ChartFibonacciRetracement.Y2
property · ChartFibonacciRetracement · cAlgo.API
DesktopCLICloud
Gets or sets the value 2 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 Y2 {get; set;}
chartFibonacciRetracement.Y2: 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.Y2 = Bars.LowPrices.LastValue - 5 * Symbol.PipSize;
Print("Retracement 0% price: {0}", retracement.Y2);
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.Y2 = api.Bars.LowPrices.LastValue - 5 * api.Symbol.PipSize
api.Print(f"Retracement 0% price: {retracement.Y2}")