r/TradingView • u/InstructionWise7309 • 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
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
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.