'Is there a way to apply future bar value?
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?
Solution 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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | vitruvius |
