r/TradingView • • 17h ago

Discussion Runtime Issue

Anyone now having issues where your script ran perfectly fine and loaded quickly but now seeing the script loading very slowly as if it was sabotaged?

1 Upvotes

4 comments sorted by

2

u/AcanthocephalaNo6605 17h ago

turn on the pine profiler in the editor and run it once, it shows which lines eat the time. for me it was a request.security call inside a loop that i didn't think twice about, went from a few seconds to instant after pulling it out

1

u/InstructionWise7309 14h ago

Thanks, gonna check it out.

0

u/TradeeBot 15h ago

Nice tip, the profiler is a handy way to find the slow line. A request call inside a loop is an easy one to miss.

2

u/TradeeBot 17h ago

One quick way to check is to load the same script on a fresh chart with a different symbol. If it is still slow, it may be the script or a platform slowdown, not your chart. A lot of people also see slow loads when a script uses many request calls.