ConvertTimeAndPriceToPoint

Description

The ConvertTimeAndPriceToPoint method converts a time and price value to chart coordinates (x, y points).

Syntax

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

Parameters

  • chartId: A number representing the chart ID

  • time: A number representing the Unix timestamp (in seconds)

  • price: A number representing the price level

Return Value

Returns an object with x and y coordinates on the chart.

Example

Last updated