Start here
How indicators work in Subtrigger
Bars, periods, warm-up and stream names: what happens between a price tick and an indicator value in Subtrigger alerts.
6 min readUpdated
An indicator turns a stream of prices into a number that answers one question: is the price trending, how fast is it moving, how wide does it swing, how unusual is it right now? Subtrigger computes indicators live, on the same ticks your alerts read, so an alert can say "tell me when RSI drops below 30" instead of "tell me when BTC is below 64,000".
From ticks to bars
Exchanges send a new price many times a minute. Indicators are defined on bars (candles): fixed time intervals with an open, high, low and close.
Subtrigger cuts the live price of each market into bars aligned to the clock in UTC:
| Market | Bar | Sources |
|---|---|---|
| Crypto, top-10 USDT pairs | 1 minute | Binance, Bybit, OKX, Bitget, Gate, KuCoin, MEXC |
| US stocks and ETFs | 5 minutes | Nasdaq (delayed quotes) |
| Kraken FX, 8 most traded pairs | 1 minute | Kraken |
The first tick of a minute opens a new bar. Every next tick in that minute updates its high, low and close. When the minute ends the bar is closed and a new one starts.
The period
Almost every indicator has a period: how many bars it looks at. "RSI 14 ยท 1m" is RSI over the last 14 one-minute bars, roughly the last 14 minutes. The same RSI 14 on 5-minute bars covers 70 minutes.
- A short period reacts fast and gives many signals, many of them noise.
- A long period is smooth and slow, with fewer but later signals.
The defaults in Subtrigger are the classic ones traders know: SMA and EMA 20 and 50, RSI 14, MACD 12/26/9, Bollinger 20/2, ATR 14, Stochastic 14/3, ROC 10, volatility 20, Donchian 20 and z-score 20.
Warm-up: when the first value appears
An indicator has no value until it has seen enough bars. RSI 14 needs 15 bars, SMA 50 needs 50, MACD 12/26/9 needs 34.
| Where | How it starts |
|---|---|
| Binance, Kraken FX | Warm. Past candles are loaded when the indicator starts, so values are ready right away. |
| Other exchanges | Cold. Bars come from live prices only. RSI 14 on 1m has a first value after about 15 minutes. |
| US stocks and ETFs | Cold, on 5-minute bars: RSI 14 needs about 75 minutes of trading. |
Smoothed indicators (EMA, RSI, ATR, MACD) keep settling a little longer than their minimum. Subtrigger keeps about four periods of bars for them, so after that the value no longer depends on where it started.
Computed on demand
Subtrigger does not compute every indicator for every market all the time. An indicator starts when something needs it: an alert, a proxy, or someone watching its live value in the builder. That is why a stream you just picked on a cold exchange may show "no value yet" for a few minutes.
Stream names
Every indicator output is a stream with an id you will see in the builder, in history and in the API:
ind:rsi_14_1m@binance.miniticker:BTCUSDT:value
โ โ โ โ โ โ output: value, upper, signal, kโฆ
โ โ โ โ โ market
โ โ โ โ source exchange
โ โ โ bar
โ โ indicator and its parameters
โ kind: indicator
In the builder it reads as BTCUSDT RSI 14 ยท 1m ยท Binance. Indicators with several outputs have one stream per output: MACD has macd, signal and histogram; Bollinger Bands have upper, lower and percent_b.
Using indicators in alerts
Search for an indicator like any stream: "btc rsi", "eth macd", "aapl bollinger". Then compare it:
- with a number: RSI below 30, z-score above 2, volatility above 1 %;
- with another stream: price above SMA 50, MACD above its signal, EMA 20 above EMA 50;
- with changed: fire whenever the value changes.
Alert idea
BTCUSDT RSI 14 ยท 1m ยท Binance < 30
Alert idea
BTCUSDT Price ยท Binance > BTCUSDT SMA 50 ยท 1m ยท Binance
How often matters as much as the condition:
- On crossing (the default) fires once when the condition becomes true, then waits until it turns false again. It is the right choice for "RSI crossed below 30".
- Every match fires on every tick while the condition holds. Use it with a cooldown.
- Once fires a single time and pauses the alert.
Which indicator for which question
| Question | Indicators |
|---|---|
| Which way is the trend? | SMA, EMA, MACD |
| Is the move strong or tired? | RSI, Stochastic, ROC |
| How wide are the swings? | ATR, Volatility, Bollinger Bands |
| Did the price break out? | Donchian Channels, Bollinger Bands |
| How unusual is this price? | Z-score, Bollinger %B |
| Is one exchange out of line? | Spread |
FAQ
Why does my indicator show no value?
It is still warming up. On crypto exchanges other than Binance and on stocks, bars come from live prices only, so an indicator needs its period in bars before its first value.
Can I change the period of an indicator?
Not yet: Subtrigger offers the classic periods listed above. They cover most strategies, and having everyone on the same settings makes signals easier to compare.
Do indicators use the bid, the ask or the last price?
The last traded price (the close of each tick) of the market on that exchange.
Are indicators computed for every coin?
For the top-10 USDT pairs on seven crypto exchanges, the largest US stocks and ETFs, and the eight most traded Kraken FX pairs (EUR/USD, GBP/USD, USD/JPY, USD/CHF, USD/CAD, AUD/USD, EUR/GBP, EUR/CHF). Other markets are available as raw prices.
Keep reading
- TrendSMAThe simple moving average explained: formula, how to read it, crossovers, support levels and ready-made SMA alerts for crypto and stocks.
- MomentumRSIRSI explained for beginners and pros: Wilder's formula, overbought and oversold zones, divergences, regimes and RSI alerts.
- VolatilityBollinger BandsBollinger Bands and %B explained: the bands, squeezes, band walks, mean reversion and Bollinger alerts on crypto and stocks.