Z-Score
Z-Score of an asset's price.

Indicator appearance.
Description
The standard score (Z-Score) is a measure of relative dispersion of an observed or measured value. It shows how many standard deviations the value lies from the mean.
How Z-Score is calculated
The Z-Score indicator measures how far the current price deviates from its moving average, in standard deviations.
Moving average of the closing price over \( n \) periods:
where:
- — moving average of the closing price,
- — closing price,
- — number of periods.
Standard deviation of the closing price over \( n \) periods:
where:
- — standard deviation of the closing price over periods.
Z-Score calculation:
where:
- — Z-Score, which shows how far the current price is from the mean in units of standard deviation.
Indicator
The indicator is called [SF] Z-score (listed as [SFQA] Z-score) and is available on all plans.
Do not confuse it with DOM z-score: there the z-score is computed on the resting order size in the book, not on price.
| Parameter | Default | What it sets |
|---|---|---|
| Symbol | empty | Asset. Empty means the chart ticker |
| Price source | close | Price source: open, high, low, close, hl2, hlc3, ohlc4 |
| MA type | SMA | Average type: SMA, EMA, WMA, VWMA, LSMA |
| Length | 240 | Number of periods |
| Sigma multiplier | 3 | Threshold in standard deviations: Z-Score going beyond +threshold or −threshold is highlighted |