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 20 seconds. If a script can’t complete its calculations during this allotted time, the "Calculation takes too long to execute (> 20000 ms)." 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.
Launch Chart
Laman Utama Penyaring Saham Penyaring Forex Penyaring Kripto Kalendar Ekonomi Bagaimana ia berfungsi Ciri-ciri Carta Harga Rujuk rakan Peraturan Dalaman Pusat Bantuan Laman web dan Penyelesaian Broker Widget Penyelesaian Pencartaan Perpustakaan Pencartaan yang Ringan Blog & Berita Twitter
Profil Tetapan Profil Akaun dan Pengebilan Kawan-kawan yang dirujuk Coin Tiket Sokongan Saya Pusat Bantuan Idea yang diterbitkan Pengikut Mengikuti Mesej Peribadi Sembang Daftar Keluar