sofex
Pine Script Rookie
Pine Script Rookie
Posts: 1
Joined: June 5th, 2022
Contact: TradingView Profile

Historical entries dissapearing on reload

Hi all! I have a question regarding the results of a script I am backtesting. Unfortunately I do not yet have the code to show.
The weird behavior is as follows:

A trade is entered and candle closes
Page is refreshed 2/3 times - entry persists on chart and in backlog
Page is refreshed a few more times - entry disappears
Page is refreshed a few more times - entry reappears

Basically, what should be confirmed historical entries disappear / reappear on page reloads on next candle in a seemingly random fashion
Sometimes trades disappear completely on the previous bar, sometimes they persist.

Would this be some type of repainting that changes historical entries?

processingclouds
Pine Script Master
Pine Script Master
Posts: 115
Joined: January 30th, 2022

Re: Historical entries dissapearing on reload

As script is not given , it is hard to tell the exact issue. But you should look at the topic on repainting in pinescript.

Return to “Pine Script Q&A”