Skip to content

chart.Point

A point on the chart (index, time, price).

Kind: object

Fields

NameTypeDescription
indexintThe x-coordinate of the point, expressed as a bar index value.
timeintThe x-coordinate of the point, expressed as a UNIX timestamp in milliseconds.
pricefloatThe y-coordinate of the point.

Static Methods

from_index

navi
Point.from_index(index: int, price: float): Point

Returns a chart.Point object at the specified bar index and price.

Parameters

NameTypeDefaultDescription
indexint
pricefloat

Returns: Point


from_time

navi
Point.from_time(time: int, price: float): Point

Returns a chart.Point object with specified time and price.

Parameters

NameTypeDefaultDescription
timeint
pricefloat

Returns: Point


now

navi
Point.now(price: float = close): Point

Returns a chart.Point object with price as the y-coordinate.

Parameters

NameTypeDefaultDescription
pricefloatclose

Returns: Point

Released under the MIT License.