0

Pinescript begins calculations with the oldest bar and moves forward till current day bar. Is there a way to reference a current day bar or value calculated from the whole available range when calculating older bars?

1 Answer 1

1

No. That would be cheating, wouldn't it? However, the opposite is possible.

If this is for display purposes, you can use the offset parameter of any plot function.

Sign up to request clarification or add additional context in comments.

1 Comment

I would like to split the range between highest and lowest bar values in the whole range into X sections, then beginning with the first bar assign it's value to X(n) section. It's not possible right?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.