Why does Pine Script say there are too many unique request.*() calls?

Market Data · Pine Script
SOURCE-CHECKED FIX Source checked Aug 12, 2026 TradingView documentation ✓
Short answer

The script has exceeded the plan-specific limit for unique request.*() contexts. Reuse identical calls, combine several requested expressions into one tuple, and reduce dynamically generated symbol or timeframe combinations.

What you may be seeing

  • The runtime reports too many unique request calls
  • A loop over timeframes fails only after several iterations
  • Importing a library pushes a previously working script over the limit

Most likely causes

  1. The script creates too many distinct request contexts
  2. Dynamic symbols or timeframes generate new unique combinations
  3. Equivalent data is requested through several separate calls or libraries

Try this first

  1. List every request.*() call including calls inside imported libraries
  2. Identify which argument combinations are genuinely unique
  3. Reuse identical calls and combine related expressions in tuples
  4. Cap dynamic symbol and timeframe lists to the required contexts

If that didn’t fix it

  1. Preselect a smaller input list
  2. Calculate several outputs from one requested tuple
  3. Remove optional modules that request duplicate market contexts

Verify the fix

The script runs for the largest allowed user configuration without a unique-request error and still requests every required context.

Why this happens

The script has exceeded the plan-specific limit for unique request.*() contexts. Reuse identical calls, combine several requested expressions into one tuple, and reduce dynamically generated symbol or timeframe combinations.

Repeated calls with identical arguments can reuse data, while a new symbol, timeframe, expression context or other distinct argument set can count as another unique request. Libraries can also contribute request calls.

Sources & next steps

Did this fix your problem? Your answer helps us rank fixes by real-world usefulness.
← Back to Resolve