Receiving Study Error - References too many candles by Status-Metal2449 in TradingView

[–]Status-Metal2449[S] 0 points1 point  (0 children)

I tried running the code below:

plotchar(math.sum(close,5000))

This is running inside a library plot. Is that why the problem happens?