Limits

These ceilings are part of the language. Crossing one stops the run with a clear message.

ResourceCeiling
Source size65,536 bytes
Tokens20,000
Syntax nodes10,000
Bars per run200,000
Stored series values, bars times top level declarations8,000,000
History offset, start_offset, bars_right, bars_back200,000
Statements executed on one bar, outside loop bodies10,000
Loop passes on one bar100,000
Loop steps in one run25,000,000
Markers, texts, boxes, dots, segments, event zones and vertical lines drawn by a script with a loop250,000 per run
Shape points from plot.rect, plot.polygon and plot.cell240,000 per run, the newest kept
plot.hbar rows5,000
plot.table cells640
plot.cell texts5,000 per run, the newest kept
profile.row_color rows5,000 per run
Strings built on one bar200,000
Characters of text built on one bar, and in one run16,000,000 and 512,000,000
Different mtf timeframes in one script8
Different session.open and session.adr windows in one run64
Function call depth32
Parameters per function16
Arguments per call24
Distinct plot call sites64
Folded profiles per run512
Folded profile rows per run200,000
String length1,024 characters
Lines in one text block8
Market items supplied to one run: prints, ladder rows, book levels, orders and strikes together1,000,000
Items walked by whole bar answers on one bar1,000,000
Time for one run8 seconds

A script without a loop has no separate cap on markers, text blocks or zones: it draws at most one per call site per bar, the chart keeps the whole result and draws only what the current view intersects.

Every layer of the market, Orderflow to optionflow, on one chart.

Institutional grade Orderflow data with backtesting and journaling built in. Join the waitlist for early access.

Get Access