Chart points reference
The 5 functions and 0 values of chart.point: signature, effects, phase, cost and tested examples.
A point on the chart, made from a time or a bar index and a price, used by lines, labels, boxes and polylines.
Functions#
chart.point.at_index#
chart.point.at_index([index], [price])
A point at a bar index and a price, for the drawings that take points.
- Effects: builds a new value whose size follows its arguments (counted in the memory ledger).
- Phase: every bar.
- Cost: allocates: the memory ledger counts what it builds.
- Returns: a point.
- Examples: Swing high path.
chart.point.at_time#
chart.point.at_time([time], [price])
A point at a time and a price, for the drawings that take points.
- Effects: builds a new value whose size follows its arguments (counted in the memory ledger).
- Phase: every bar.
- Cost: allocates: the memory ledger counts what it builds.
- Returns: a point.
chart.point.copy#
chart.point.copy([point])
Makes a copy.
- Effects: builds a new value whose size follows its arguments (counted in the memory ledger).
- Phase: every bar.
- Cost: allocates: the memory ledger counts what it builds.
chart.point.new#
chart.point.new([time], [index], [price])
A point on the chart from a time, a bar index and a price.
- Effects: builds a new value whose size follows its arguments (counted in the memory ledger).
- Phase: every bar.
- Cost: allocates: the memory ledger counts what it builds.
chart.point.now#
chart.point.now([price])
A point at the current bar with a price.
- Effects: builds a new value whose size follows its arguments (counted in the memory ledger).
- Phase: every bar.
- Cost: allocates: the memory ledger counts what it builds.