Docs

ITMScript · Reference

Limits

The bounds one study runs inside. A study over a limit is refused, and the message names the limit.

LimitValueWhat it counts
Script length65,536Characters of source in one study.
Steps512Calculation steps in one study, after every function call is expanded.
Inputs32Inputs one study may declare.
Declared series16Series from other symbols that one study may read, beyond the chart’s own.
Plots32Plots one study may draw.
Bars100,000Bars in one run.
Window10,000Bars in one rolling window, and the longest look-back of a history reference.
Work64,000,000The total calculation budget of one run: each step’s cost per bar, times the bars it runs over.
Text256Characters in a title, label or message.

Shorten a window, drop a plot or load fewer bars to bring a study under the work limit.