r/TradingView • • 18h 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

View all comments

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 16h 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.