ChartXYToTimePrice

Description

The ChartXYToTimePrice method converts chart coordinates (x, y points) to time and price values.

Syntax

public ChartXYToTimePrice(
    chartId: number,
    x: number,
     y: number
     ): { time: number; price: number }

Parameters

  • chartId: A number representing the chart ID

  • x: A number representing the x-coordinate on the chart

  • y: A number representing the y-coordinate on the chart

Return Value

Returns an object containing:

  • time: Unix timestamp (in seconds)

  • price: Price value at the specified point

Example

Last updated