chart
Types
point
A point on the chart (index, time, price).
Kind: object
Fields
| Name | Type | Description |
|---|---|---|
index | int | The x-coordinate of the point, expressed as a bar index value. |
time | int | The x-coordinate of the point, expressed as a UNIX timestamp in milliseconds. |
price | float | The 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) → pointReturns a chart.point object with specified time and price.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
time | int | ||
price | float |
Returns: point
now
pine
point.now(float price = close) → pointReturns a chart.point object with price as the y-coordinate.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
price | float | close |
Returns: point