Indicators: the catalog, reading a line, and how the values are verified
The 38 built-in technical indicators in four groups: reading a line, lines drawn forward or back, the first value, volume, colour lines, refusals.
A strategy reads its indicators from a fixed catalog of 38 built-in technical indicators,
in four groups: Trend, Oscillators, Volumes and Bill Williams. This page lists them and states the rules every
indicator shares: how a line is read, lines drawn forward or back, where the first value lands, what the volume
indicators read, colour lines, what is refused, and how the values are verified. Each indicator's formula, lines,
parameters and reading are on its group's page: Trend,
Oscillators, Volumes and
Bill Williams.
38 indicators in four groups: Trend, Oscillators, Volumes and Bill Williams. The
strategy editor's picker shows the same four groups, with each indicator's keyword under its name.
There are no custom indicators, and an indicator cannot be computed on another indicator's output; an Expression, a
status holder or a record set combines indicators instead.
An indicator is declared once, with its parameters in the order its entry gives, on one instrument and one timeframe:
let ichi = Ichimoku(9, 26, 52) on EURUSD H1.
An indicator with several lines is read by the line's name or number: ichi.kijun[1], bands.lower[0]. Lines are
numbered from 0 in the order each entry gives. An indicator with one line is read without a name: rsi[1]. In the
strategy editor, a condition names the line it reads, on the condition and on its operand.
The number in brackets is the shift, the bars back: what [0] means in a candle-close rule and in an On Tick rule is
on Strategy semantics → read positions. In an On Tick rule [0] is
computed with the bar in progress as the newest input, so it can change while the bar forms.
"First value on bar k" on these pages counts from bar 0, the first bar of the history a run loaded, and names the bar
a line first shows a value on as drawn: the bar where a read at [0] first returns it. Where a Shift field moves a
line forward, it is bar k + Shift. For a line drawn back (Ichimoku's Chikou span, Fractals, a Gator histogram drawn
back), the entry also says from which read a value can first be held.
A read returns the line where it is drawn. Some lines are drawn forward: the lines of an indicator with a
Shift field (Moving Average, Bollinger Bands, Envelopes, Standard Deviation, DEMA, TEMA, Adaptive Moving Average,
Fractal Adaptive Moving Average, Variable Index Dynamic Average), the Alligator's three lines, Ichimoku's cloud and
the Gator's histograms. x[s] of a line drawn H bars forward is the value computed H bars before bar s, so with
H ≥ 1 x[0] is a closed bar's value even in an On Tick rule.
The part of a line drawn ahead of the newest bar cannot be read. A negative shift is refused when you save and
when a run starts.
Some lines are drawn back: Ichimoku's Chikou span (the close, Kijun bars back), both Fractals lines (two bars
back), and a Gator Oscillator histogram whose Teeth Shift exceeds its smaller shift by more than 5. A read nearer
than the line's smallest readable position would need a bar that has not closed yet, so it can never hold a value:
it is refused when you save and when a run starts, with a message naming the smallest read that can ([Kijun] for
the Chikou span, [2] for Fractals). The strategy editor starts a read of such a line at its smallest position,
does not let it go nearer, and says why: "Reads from @N: this line is drawn N bars back."
#The first value, the warm-up and the starting value
Each line's first value is on the bar its entry gives. A warm-up bar holds no value: an average has no value
until it has taken its period, even where its recursion starts on an earlier bar.
A colour line warms up one bar more. Its first value is 0 by convention, whatever the direction, on the bar each
entry gives. A run loads one bar more for a colour line, so the first colour a strategy reads, on a backtest's first
evaluated bar or after a live start or restart, always compares with a real previous bar: a run never reads that
conventional 0.
Where a calculation starts. Each entry says where its recursion starts. The averages inside the indicators start
their exponential method from the first price; the Moving Average's own exponential method starts from the simple
average of the first N prices, and ADX's smoothings from the average of their first N values.
A recursive line carries its start in a run's first values. A run starts its indicators on the first bar of its
warm-up, not on years of history, so an exponential or smoothed average and everything built on one (MACD, TRIX,
DEMA, TEMA, the adaptive averages, Bears and Bulls Power …) converges from that start; how fast, and how to allow for
it, is on Strategy semantics → recursive indicators.
A running total depends on its start for good. The Accumulation/Distribution line and On Balance Volume add
every bar to a total since the first bar the run loaded: two runs that start on different bars differ by a constant.
Write rules on their changes, never on a level.
A linear-weighted average inside an indicator (the linear-weighted method of Envelopes, Standard Deviation, the
Stochastic Oscillator's signal, the Force Index, the Chaikin Oscillator, the Alligator and the Gator Oscillator) is
carried from bar to bar by sliding two running sums, never re-added from its window. Its rounding error therefore
grows, without bound, with the number of bars it has been computed over.
It stays far below a price step. Measured on 14 November 2026 after 1.3 million one-minute bars: about 3e-8 of the
price on Envelopes, and on the Chaikin Oscillator about 1e-9 of the A/D total it averages (0.001 on values near 100).
The Moving Average's own linear-weighted method keeps sums of its own, which round differently.
The Volumes group (Accumulation/Distribution, Money Flow Index, On Balance
Volume, Volumes, VWAP), the Force Index, the Chaikin Oscillator and the Market Facilitation Index read the bar's
volume, and so does any indicator whose applied price is Volume. A bar's volume is its tick count, the number of
ticks inside the bar; where it comes from, in a backtest and live, is on
Market data → volume.
The strategy editor marks every variable that reads volume with the badge "volume varies by feed":
the count depends on the price feed, so a backtest and each broker read different numbers for the same bar.
Their scale depends on that count: the same strategy on another instrument or another price feed reads other
magnitudes. Compare such a line with itself (its earlier values, its average) rather than with a fixed number.
In an On Tick rule, the bar in progress carries its volume so far: the counts of its closed minutes plus the
current minute's so far. So [0] of a volume indicator, and of an indicator whose applied price is Volume, moves
while the bar forms; what [0] reads, indicator by indicator, is on each one's entry. Read [1] for the last
closed bar.
The Awesome Oscillator, the Accelerator Oscillator, the Gator Oscillator, the Market Facilitation Index and Volumes
carry, beside their values, the colour of each bar of their histogram, as a number in a line of its own (color,
upperColor, lowerColor). An unchanged value keeps the previous colour.
A colour line has no value where its indicator has none, and a strategy reads it like any line:
ao.color[0] == 0 in a candle-close rule (ao.color[1] == 0 in an On Tick rule) is "the last closed bar
was green". A colour line's first value is a convention a run never reads: its warm-up is one bar longer
(the first value). What each number means is on the indicator's entry.
Each parameter has the range its indicator's table gives; periods go up to 2,500 bars.
Where an indicator stacks periods (MACD's slow average and its signal, the Stochastic's three periods, ADX's two
smoothings, Ichimoku's longest window plus its Kijun-sen), the history it needs must also fit in
2,500 bars; a set that does not is refused when you save.
A read that can never hold a value (lines drawn back) and a negative shift are refused when you save
and when a run starts.
VWAP refuses an anchor whose period cannot fit on the chosen timeframe
(VWAP).
An optimization is checked at the corners of its sweep, so a swept period cannot carry an indicator past these
limits (indicators in a sweep).
The strategy editor and the optimization dialog show a refusal where you asked for it, in the server's words.
A replay draws each line where it is drawn and where a rule reads it: lines drawn forward run into the space right
of the newest candle, the Chikou span and the fractals are drawn back. Histograms, coloured by each indicator's own
rule, and marks (Parabolic SAR, Fractals) are drawn as such; a colour line is never drawn. Bollinger Bands,
Envelopes, VWAP and Ichimoku's cloud can be shown as bands. The rules, and the one way a replay shows a value early,
are on Replay → on the chart.
Every indicator's values are verified value by value against an independent reference, over real market bars, for
each line and each parameter set the record names. The record, indicator by indicator, with every bound and every
excluded row: Why you can trust the engine → indicators.