ITMScript
Overview
A declarative study language over chart bars and declared series. Write a study, run it on a chart and look up every operator.
A study is a short script that turns bars into lines, bands, markers and alerts. It is declarative. You state what each value is, and the chart works it out on every bar. The same script on the same bars gives the same result.
What you can write
- Inputs a reader can change, such as a length, a source or a colour.
- Calculations over open, high, low, close and volume.
- Moving averages, oscillators, bands, volume measures and statistics from the operator reference.
- Series from other symbols, declared once and read like the chart's own.
- Plots, levels, filled zones, markers and alerts. A line or a marker may change colour from bar to bar.
A study runs inside fixed limits. A study over a limit is refused, and the message names the limit.
Custom study is marked Experimental in the chart because the language is still growing.
Where to go
- Your first study pastes a study into the chart editor and changes it.
- A tour of the language shows each part of a study with a short example.
- The builder writes a study as text or as blocks and imports a study written in Pine Script or thinkScript.
- The chart console writes a study, or a screen over one of your lists, from a request in plain words and converts a script you paste.
- Concepts explain missing values, other symbols and timeframes and outputs.
- The cookbook holds twenty complete studies to paste in and change.
- Operators lists every operator with its parameters, outputs and warm-up.
- Colours and styles lists the names a study may use for colour and style.
- Error codes explains every refusal and what to write instead.
- Limits lists what one study may hold.