Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Indicators Reference

Triggers compare indicators to values or to other indicators. Each indicator takes a period and runs on a timeframe you choose. On a 1-minute base, an indicator on the 1h timeframe uses hourly candles built from the 1m data.

Available indicators

NameTOML keyWhat it measures
Simple Moving Averagesma_NAverage close over N periods
Exponential Moving Averageema_NWeighted average, more recent prices count more
Relative Strength Indexrsi_NMomentum, 0–100, overbought/oversold
Bollinger Bandsbb_*Volatility bands around a moving average
MACDmacdTrend and momentum from two EMAs
On-Balance VolumeobvVolume flow direction
OBV SMAobv_sma_NSmoothed OBV
TTM Trendttm_trendTrend persistence
Stochastic RSIstoch_rsiRSI run through a stochastic oscillator
Rate of Changeroc_NMomentum as a percentage move over N periods
Average True Rangeatr_NVolatility in price terms
Volume SMAvol_sma_NSmoothed volume
PricepriceThe raw close price

Reading a key

ema_21 is a 21-period EMA. On the 1h timeframe that's 21 hours. roc_90 is the percentage change over the last 90 periods, which is the momentum measure the GEM rotation strategy ranks on.

Operators

OperatorFires when
cross_aboveThe indicator crosses up through the target
cross_belowThe indicator crosses down through the target
greater_thanThe indicator is above the target
less_thanThe indicator is below the target
equalThe indicator equals the target

cross_above and cross_below fire once on the crossing. greater_than and less_than are true for as long as the condition holds, so pair them with a max_count if you only want them to fire once.