Documentation Index
Fetch the complete documentation index at: https://docs.darvas.app/llms.txt
Use this file to discover all available pages before exploring further.
Runtime budgets
| Resource | Limit | Error raised |
|---|---|---|
| Source script size | 50 KB | INVALID_REQUEST |
| Heap memory | 64 MB | HEAP_LIMIT |
| Stack depth | 1 MB | RUNTIME_ERROR |
| Top-level eval | 1.5 s wall-clock | TIMEOUT |
Per-bar onBar | 50 ms wall-clock | TIMEOUT |
| Total run time | 10 s wall-clock | TIMEOUT |
| Bar lookback | 100 000 bars | INVALID_REQUEST |
Drawing primitive budgets
| Primitive | Limit | Overflow behavior |
|---|---|---|
plot() series | 64 | Error at evaluation time |
hline() | 64 | Error at evaluation time |
fill() | 64 | Error at evaluation time |
bgcolor() entries | 1 000 most recent | Silent truncation (oldest dropped) |
barcolor() entries | 1 000 most recent | Silent truncation (oldest dropped) |
Entity budgets
| Entity type | Per-type limit | Overflow behavior |
|---|---|---|
| Line | 500 | Warning in console; oldest truncated |
| Box | 500 | Warning in console; oldest truncated |
| Label | 500 | Warning in console; oldest truncated |
| Marker | 500 | Warning in console; oldest truncated |
| LineFill | 500 | Warning in console; oldest truncated |
| All entities combined | 1 500 | Global cap enforced after per-type check |
Series budget
| Resource | Limit | Notes |
|---|---|---|
Series() instances | 64 total | Shared with ta.barssince and ta.cum internal series |
ta.barssince(key, ...) or ta.cum(key, ...) consumes one slot from this budget.
Console output budget
| Resource | Limit |
|---|---|
| Console log lines | 100 per evaluation |
| Characters per line | 200 |
Banned constructs
The following are rejected at parse time (not at runtime - the script will not evaluate at all):Function,eval,globalThis,window,selfWebAssembly,Atomics,SharedArrayBufferReflect,ProxysetTimeout,setInterval,setImmediate,queueMicrotaskfetch,XMLHttpRequest,WebSocket,Workerprocess,require,__dirname,__filenameimportdeclarations and dynamicimport()withstatementsasync function/async () =>- Generators
for await ... ofwhile(true)without a syntacticbreakfor(;;)without abreak- Literal loop bounds > 100 000
- Property walks through
__proto__/constructor/prototype
Related pages
Performance tips
How to stay within budgets on large bar counts.
Troubleshooting
Common limit-related error messages.
Series
64-series budget details.