Nuvexlens
知识库 公告 开始使用

I see the "The script executes too many unique `request.*()` function calls" error

Note: This documentation applies to the Nuvexlens Advanced Charting System. Nuvexlens fully supports technical indicators and strategy backtesting to help you make smarter trading decisions.

I see the "The script executes too many unique `request.*()` function calls" error

This error occurs if a Pine script executes too many unique request.*() function calls. Whether a request.*() call is unique depends on its specified context (symbol, timeframe, and modifiers), its expression, and the scope from which it executes. Each unique request.*() call consumes extra computational resources, because it fetches another dataset into memory and runs extra computations on that data. Therefore, Pine limits the number of unique requests allowed for any script. 

If you have a non-professional plan, your scripts can execute no more than 40 unique data requests. If you upgrade to a Professional plan, whether Ultimate, your Pine v6 scripts can execute up to 64 unique requests. 

Alternatively, if you can access the script's source code, you can try to rewrite the code to reduce the total number of unique requests and ensure the script stays within your plan's limit. To learn more about how request.*() functions work and how to use them, see our User Manual's Other timeframes and data page.