chart.point.from_index

A chart.point at a bar index and a price (its time is na: use it with xloc.bar_index).

chart.point.from_index(index: int, price: float) -> @chart.point

Parameters

Example

p = chart.point.from_index(bar_index - 10, low)