ITMScript · Reference
Limits
The bounds one study runs inside. A study over a limit is refused, and the message names the limit.
| Limit | Value | What it counts |
|---|---|---|
| Script length | 65,536 | Characters of source in one study. |
| Steps | 512 | Calculation steps in one study, after every function call is expanded. |
| Inputs | 32 | Inputs one study may declare. |
| Declared series | 16 | Series from other symbols that one study may read, beyond the chart’s own. |
| Plots | 32 | Plots one study may draw. |
| Bars | 100,000 | Bars in one run. |
| Window | 10,000 | Bars in one rolling window, and the longest look-back of a history reference. |
| Work | 64,000,000 | The total calculation budget of one run: each step’s cost per bar, times the bars it runs over. |
| Text | 256 | Characters in a title, label or message. |
Shorten a window, drop a plot or load fewer bars to bring a study under the work limit.