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
- The script creates too many distinct request contexts
- Dynamic symbols or timeframes generate new unique combinations
- Equivalent data is requested through several separate calls or libraries
Try this first
- List every request.*() call including calls inside imported libraries
- Identify which argument combinations are genuinely unique
- Reuse identical calls and combine related expressions in tuples
- Cap dynamic symbol and timeframe lists to the required contexts
If that didn’t fix it
- Preselect a smaller input list
- Calculate several outputs from one requested tuple
- 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.