I see 'Calculation takes too long to execute' error

To ensure the continued availability of computing resources to all TradingView users, indicators and strategies must complete their calculations within 40 seconds (for Pro, Pro+ and Premium plans) or 20 seconds (for Basic plan). If a script can't complete its calculations during this allotted time, the "Calculation takes too long to execute." error will appear. Here's what you can do to prevent it:

  • Split the script into multiple scripts so that each one calculates faster.
  • Limit the number of bars the script runs on using date/time filtering.
  • Optimize the script's code. Pine code can be optimized in many different ways. These suggestions will help you identify optimization opportunities.
Hem Aktie-screener Forex-screener Krypto-screener Ekonomisk kalender Om Diagramfunktioner Priser Tipsa en vän Ordningsregler Hjälpcenter Webbsidor och mäklarlösningar Widgets Diagramlösningar Lightweight Charting Library Blogg och nyheter Twitter
Profil Profilinställningar Konto och fakturering Hänvisade vänner Mynt Mina kölappar Hjälpcenter Privata meddelanden Chatt Logga ut