Gokkul
Pine Script Rookie
Pine Script Rookie
Posts: 4
Joined: December 22nd, 2023
Contact: TradingView Profile

Help with Renko Ticker plot difference

Hello,

I am new to pine scripting, but I do have some programming experience.

I created a strategy using Pine's built in Renko ticker and some other conditions.
The back testing looked fine. Deployed it live with a small fund to test it out.

During the live deployment I noticed the strategy would indicate a LONG on some day and a few days later the LONG will update to a SHORT.
I noticed that the Renko plot changes after a few days of new candle are plotted.
Basically the Renko plot of today may update and change to a different value after a few days.

I have created a simple script to show this

Code: Select all

//@version=5
strategy(title="Renko Test", overlay=true)

renko_tickerid = ticker.renko(syminfo.tickerid, "Traditional", 5)
[renko_open, renko_high, renko_low, renko_close] = request.security(renko_tickerid, timeframe.period, [open, high, low, close])

plot(renko_low, color = #ffffff, linewidth=1, title="Renko")
During bar replay I see that the Renko plot is different from the Renko that is plotted during live session with finalized historic candle.
Screenshot for reference - https://imgur.com/a/PZ6Dc9r

Not sure if this is a type of bar repainting?
Is this a know behavior?
If yes can some explain why and how this happens?


Thanks in advance for your support

Cheers

Gokkul

Return to “Pine Script Q&A”