Skip to content
TradequixDocsOpen the terminal
OverviewStart here, search, progress
  • Introduction
  • Quickstart
  • How a script runs
  • Types and qualifiers
  • Operators, conditionals and loops
  • Functions and methods
  • Objects and enums
  • Arrays, matrices and maps
  • Strings and colours
  • Time and sessions
  • Bar states
  • Plotting
  • Inputs
  • Technical analysis
  • Drawings and tables
  • Multiple timeframes
  • Strategies
  • Alerts in scripts
  • Repainting
  • The Pine editor
  • Indicator settings
  • Coming from TradingView
  • The data
  • Publish and sell
  • Catalogue and community
  • Your dashboard and earnings
  • Errors and debugging
  • Limits
  • Coverage
  • Built-in catalogue
  • Cookbook
  • Write Pine with AI
  • FAQ
  • Glossary
  • Cheat sheet
  • Function reference
  • Will it run here?
  • Error index

Reference

Error index

Every message the engine can show in the Pine editor’s console, taken from the engine’s own source, with the real cause and the fix. Paste what you see and jump straight to it.

The code could not be read

Syntax error
Failed to transpile Pine Script version 6: Unexpected character '<c>' at <line>:<col>

Why: The engine could not parse the script. The line and column point at where it gave up, which is often just after the real mistake.

  • Check brackets and quotes close on that line or the one above.
  • Indent blocks under if, for and functions by exactly 4 spaces (or one tab).
  • Make sure the first line is //@version=6.
  • Paste the script into the checker to see every problem at once.
Will it run here? checker

A function name is not recognised

Engine error
<name> is not a function

Why: The script calls a function that does not exist: usually a typo (ta.rsii), or a function this engine does not implement.

  • Check the spelling against the function reference.
  • If the name is right but missing from the reference, it is not implemented yet; rewrite that part with functions that are.
Function reference

A loop never ended

Script error
The script hit the loop limit, which usually means an unbounded loop. (Loop exceeded maximum iterations)

Why: A while or for loop ran past the engine's iteration ceiling. The engine stops it rather than freeze the chart.

  • Make sure the loop's condition can become false, or its end value is bounded.
  • Loop over a fixed lookback (for i = 0 to length - 1), not over all history.
  • Prefer built-ins like ta.highest or math.sum, which avoid loops entirely.
Limits

The script took too long

Timed out
Script did not finish within 8000ms. It may contain an unbounded loop.

Why: A run has 8 seconds. Heavy nested loops, very large arrays, or many request.security calls can exceed it.

  • Remove nested loops over history; compute running values with var instead.
  • Reduce request.security calls, or ask for fewer bars with calc_bars_count.
Limits

A timeframe below 5 seconds

Script error
This feed cannot serve the '<tf>' timeframe; its smallest interval is 5 seconds.

Why: request.security asked for a timeframe the feed does not have and cannot build.

  • Use 5S or a longer timeframe.
  • For ticks within a bar, request.security_lower_tf with "5S" is the finest available.
Multiple timeframes

A timeframe built from smaller bars

Warning
The '<tf>' timeframe is aggregated from this feed's smaller candles; available history may be limited.

Why: The timeframe is not one of the feed's fourteen, so it is built by combining smaller bars. It works; early bars may be na.

  • Nothing to fix. Prefer a native timeframe (5S to 1D) if you need the longest history.
Multiple timeframes

History was capped

Warning
Requested history was limited to 3600 candles.

Why: Each request.security call loads at most 3,600 candles.

  • Ask for less with calc_bars_count, or use a higher timeframe that needs fewer bars.
Limits

Too much history in one run

Script error
This script asked for too much history in one run.

Why: The script's other-timeframe requests needed more than 60 fetches from the feed in a single run.

  • Combine requests for the same timeframe into one call returning a tuple.
  • Lower calc_bars_count.
Limits

Too many request calls

Script error
The script executes too many request.*() function calls.

Why: A script may create at most 40 distinct request.* contexts (one per symbol, timeframe and expression).

  • Return several values from one call: [a, b] = request.security(syminfo.tickerid, "60", [close, ta.rsi(close, 14)]).
  • Never vary the symbol or timeframe argument per bar.
Limits

No live data here

Script error
This request needs a live data connection.

Why: The engine was started without a way to fetch other timeframes. In the terminal this is a configuration problem on our side, not in your script.

  • Run it again from the terminal. If it persists, report it with the script.
Multiple timeframes

A collection is too large

Script error
The requested size exceeds the 100000 element limit.

Why: Arrays, matrices and tables hold at most 100,000 elements.

  • Keep a rolling window: push the new value and shift the oldest once the array reaches your length.
Arrays, matrices and maps

Heikin Ashi, Renko and similar tickers

Script error
Derived ticker types require a matching data source and are not available on this feed.

Why: ticker.heikinashi, ticker.renko and the other modified tickers need a data source this feed does not have.

  • Compute Heikin Ashi in the script; the cookbook has a four-line version.
Cookbook

Imports are not available

Syntax error
dynamic import() is not available in Pine scripts

Why: Pine libraries (import user/lib/1) need a library resolver this platform does not have.

  • Copy the library functions you need into your script as user-defined functions.
Functions and methods

Footprint needs order flow

Warning
request.footprint() needs order-flow data, which this feed does not provide; its result is na.

Why: Volume footprints need trade-by-trade order flow. This candle feed does not carry it.

  • Remove request.footprint, or treat its value as na.
The data

Volume is a tick count

Warning
Volume on this feed is a tick count, not traded size, so this script's volume-weighted values are approximate.

Why: The script uses volume. Here volume counts price updates per bar, not traded size.

  • Nothing to fix for volume comparisons (OBV, spikes). Treat VWAP-style values as approximate.
The data

A saved setting no longer exists

Warning
Saved setting "<id>" no longer exists in this script.

Why: You customised an input that has since been removed from the script.

  • Nothing to fix; the value is dropped. Reopen settings to check the rest.
Inputs

A saved setting changed type

Warning
Saved setting "<title>" was dropped: it is now a <type>.

Why: An input you had set changed type in the script (for example a number became a checkbox).

  • Set the input again in the indicator's settings.
Inputs

The engine stopped

Engine error
The Pine Script engine crashed. Try running again. (or: PineTS data provider is unavailable.)

Why: Something failed inside the engine rather than in your logic. Rare.

  • Run again. If it repeats with the same script, remove parts until it stops, and report the smallest script that fails.