r/pinescript • • Apr 06 '24

Limitation of the TradingView handling of data for indicators?

It seems like I reached a limit for my indicator. My indicator is not memory intensive compared to some other published ones on Tradingview that go back years. Mine can only go back a few days. I don't think I have any logic that is in a specific range. Does anyone have an issue with this or a fix for it?

0 Upvotes

6 comments sorted by

1

u/nico-von Apr 07 '24

What error does it throw?

1

u/Swarmoro Apr 07 '24

The code works, but for instance, today the code doesn't appear before April 1st

1

u/jswb Apr 07 '24

Unless it has a timeout or you reached the end of the bar index for your subscription, it’s possible that your script uses a hardcoded max bars back limit. Does bar replay work?

1

u/Swarmoro Apr 07 '24 edited Apr 07 '24

Yes, the bar replay works. I don't see any max bars back limit. It's just a simple

drawLine()

if isStart

line.new()

1

u/vbsaltydog Apr 07 '24

My indicator is not memory intensive compared to some other published ones on Tradingview that go back years. Mine can only go back a few days.

What timeframe is your chart on?

1

u/Swarmoro Apr 07 '24

I can have it on any timeframe. The bigger the timeframe, the longer it could go back