pinescript, in chart.point.new time, index, price does index is back from current of…
- User
pinescript, in chart.point.new time, index, price does index is back from current of from 0 to current which is newest
Assistant
In Pine Script, the
indexparameter in thechart.point.newfunction is not counted "back from the current bar." Instead, it is an absolute index that starts from 0 at the oldest bar on the chart and increases towards the newest bar.To clarify:
index = 0refers to the oldest bar on the chart.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.