Skip to content

chart

Types

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.

Properties

bg_color

Type: input color

Returns the color of the chart's background.


fg_color

Type: input color

Returns a color providing optimal contrast with chart.bg_color.


is_standard

Type: input bool

Returns true if the chart type is not one of the following: Renko, Kagi, Line break, Point & figure, Range, Heikin Ashi; false otherwise.

Methods

from_time

pine
point.from_time(int time, float price) → point

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

Parameters

NameTypeDefaultDescription
timeint
pricefloat

Returns: point


now

pine
point.now(float price = close) → point

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

Parameters

NameTypeDefaultDescription
pricefloatclose

Returns: point

基於 MIT 許可證發佈。