Results with several parts
bands(), macd() and others give several lines: pick one with a dot.
For AI tools: this page as Markdown · the whole language in one file
1name("Bands", where = chart)2 3b = bands(close, 20, 2)4plot(b.upper, "Upper", color = grey)5plot(b.mid, "Middle", color = blue)6plot(b.lower, "Lower", color = grey)7fill(b.upper, b.lower)| Built-in | Parts |
|---|---|
bands | .upper .mid .lower |
macd | .line .signal .hist |
stoch | .k .d |
donchian | .upper .mid .lower |
ichimoku | .conversion .base .span_a .span_b |
keltner | .upper .mid .lower |
stochrsi | .k .d |
dmi | .plus .minus .adx |
supertrend | .line .dir |
psar | .value .dir |
See also: bands, macd, supertrend


