Just use the “shift” parameter to get the correct value – for the current candle, and any other candle.
When you change the shift value, save the function with a new name that makes sense, like “stoch_current”, “stoch_last”, etc.
There is more info on shift here:
Eample for current bar:
Example for Last Fully formed Bar:
Example for value from two bars ago:
The Drawing with Elements will look something like this:
To get notified about the latest questions and answers, follow us!