ChartnautDocs

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

Volume

Histogram on its own price scale, per-bar colour, no state

2

Moving Average

input.select, a warmup that depends on a setting, the foldBar state pattern

3

Donchian Channels

Three lines from rolling highs and lows

4

ATR

True range with a choice of smoothing

5

RSI

Wilder smoothing and guide lines in a pane

6

Bollinger Bands

SMA with standard deviation bands

7

Stochastic

Stacked smoothing stages and a summed warmup

8

MACD

Two lines and a histogram in one pane

9

Supertrend

Path-dependent state and warmup((w) => w.forever())

10

VWAP

Session resets, input.array and output.bandTemplate

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.