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

Function reference

All 555 functions, variables and constants the engine implements, read from PineTS 0.11.1 itself, so nothing listed is missing and nothing missing is listed. The ones you use most have full entries and examples you can run.

Verified: used in tested scriptsSupported: implemented, not yet in our testsNot available on this feed
Built-ins and plottingDeclarations, plotting, colouring the chart, and the small helpers every script uses: na, nz, fixnan.54 names19 full entries4 runnableta: technical analysisAverages, oscillators, bands, trend studies, crosses, pivots and lookbacks. Each returns a series and handles its own warm-up.67 names53 full entries14 runnablemathArithmetic, rounding, logs, trigonometry and aggregates.29 names17 full entriesstr: stringsFormat numbers, build and search text for labels and tables.18 names9 full entriesinputEvery input becomes a field in the indicator's settings. See the Inputs guide for how saved values behave.13 names9 full entriesrequest: other dataOther timeframes work. Company, economic and order-flow data are not in this feed and return na with a warning.11 names7 full entriesstrategyOrders and the backtest's running statistics. Declare strategy() instead of indicator() to use them.49 names10 full entries1 runnablecolorNamed colours and functions to make your own. Transparency runs 0 (opaque) to 100 (invisible).24 names4 full entries1 runnableDrawings: label, line, box, tableObjects placed at coordinates. Create with *.new(), keep the id to update or delete it. See the Drawings guide.134 names7 full entriesarray, matrix, mapCollections of values. Up to 100,000 elements each.115 names8 full entriesBar states, time, timeframe, sessionWhat the script knows about the bar, the chart and the clock. The feed trades 24x7 on UTC.41 names8 full entries