ChartArea.YValueToY
method · ChartArea · cAlgo.API
DesktopCLICloud
Converts Area Y axis coordinate value to mouse Y coordinate.
Environment behaviour
CLI — not supported. Always returns 0; no conversion is done.
Cloud — not supported. Always returns 0; no conversion is done.
Definition
double YValueToY(double yValue)
chartArea.YValueToY(yValue: float) -> float
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
yValue | double | float | Y value |
Returns double — Mouse Y coordinate
Examples
var y = Chart.YValueToY(Symbol.Bid);
Print("Bid price is at Y: {0}", y);
y = api.Chart.YValueToY(api.Symbol.Bid)
api.Print(f"Bid price is at Y: {y}")