Examples
Ten indicators from the Chartnaut public library, simplest first. Each page says what the indicator plots, which decisions in the script matter, and gives the full source.
# | Example | Shows |
|---|---|---|
1 | Histogram on its own price scale, per-bar colour, no state | |
2 |
| |
3 | Three lines from rolling highs and lows | |
4 | True range with a choice of smoothing | |
5 | Wilder smoothing and guide lines in a pane | |
6 | SMA with standard deviation bands | |
7 | Stacked smoothing stages and a summed warmup | |
8 | Two lines and a histogram in one pane | |
9 | Path-dependent state and | |
10 | Session resets, |
The examples are written against the current DSL: every script that keeps state declares its warmup, and every one survives the forming bar re-running on each tick. Some library rows still run older source, so Show source on a library indicator in Tools → Indicators can differ from these pages.
