vike
Indicators

Momentum indicators

The 36 built-in momentum indicators Vike Trader ships, with every parameter, its default and its sweep range — rendered from the indicator registry.

Momentum indicators measure the speed and persistence of a move — oscillators, rate-of-change families and their signal lines. Vike Trader ships 36 of them in this category, out of 171 built-in single-series indicators and 8 pair indicators; the indicators overview carries the catalog's shape and the categories side by side.

Every built-in indicator carries one guarantee: its streaming on_bar path equals its batch vectorize kernel bit-for-bit, proven by the parity gate in the product tree (crates/vike-indicators/tests/parity.rs). The exceptions are declared, not discovered: an indicator marked batch-only reads future bars in its batch form, so its streaming value is a causal best-effort that is NaN at the unknowable tip, and the gate skips it by name. No indicator in this category is batch-only.

Indicators

Each parameter is shown with its built-in default and the range and step the Studio's sweep grid offers for it (ParamSpec in vike_indicators::registry).

IdNameParameters (default; range, step)Batch-only
rsiRSIlength = 14 (1–1000, step 1)no
macdMACDfast_length = 12 (1–1000, step 1); slow_length = 26 (1–1000, step 1); signal_length = 9 (1–1000, step 1)no
stochasticStochasticlength = 14 (1–1000, step 1); smooth_k = 3 (1–1000, step 1); smooth_d = 3 (1–1000, step 1)no
cciCCIlength = 20 (1–1000, step 1)no
rocRate of Changelength = 10 (1–1000, step 1)no
williamsWilliams %Rlength = 14 (1–1000, step 1)no
awesomeAwesome Oscillatorfast_length = 5 (1–1000, step 1); slow_length = 34 (1–1000, step 1)no
momMomentumperiod = 10 (1–400, step 1)no
rocpROC Percentageperiod = 10 (1–400, step 1)no
rocrROC Ratioperiod = 10 (1–400, step 1)no
rocr100ROC Ratio ×100period = 10 (1–400, step 1)no
apoAbsolute Price Oscfast = 12 (2–200, step 1); slow = 26 (2–400, step 1)no
ppoPercentage Price Oscfast = 12 (2–200, step 1); slow = 26 (2–400, step 1)no
cmoChande Momentum Oscperiod = 14 (2–200, step 1)no
bopBalance of Powernoneno
dpoDetrended Price Oscperiod = 20 (2–400, step 1)no
trixTRIXperiod = 18 (2–200, step 1)no
tsiTrue Strength Indexlong = 25 (2–400, step 1); short = 13 (2–200, step 1)no
smi_ergodicSMI Ergodiclong = 20 (2–400, step 1); short = 5 (2–200, step 1); signal = 5 (2–200, step 1)no
coppockCoppock Curvewma_p = 10 (2–100, step 1); roc_long = 14 (2–200, step 1); roc_short = 11 (2–200, step 1)no
kstKnow Sure Thingroc1 = 10 (1–200, step 1); sma1 = 10 (2–200, step 1); roc2 = 15 (1–200, step 1); sma2 = 10 (2–200, step 1); roc3 = 20 (1–200, step 1); sma3 = 10 (2–200, step 1); roc4 = 30 (1–200, step 1); sma4 = 15 (2–200, step 1); signal = 9 (2–200, step 1)no
aroonAroonperiod = 14 (2–400, step 1)no
aroonoscAroon Oscillatorperiod = 14 (2–400, step 1)no
adxADXperiod = 14 (2–100, step 1)no
adxrADXRperiod = 14 (2–100, step 1)no
elder_rayElder Rayperiod = 13 (2–200, step 1)no
stochfFast Stochastick = 14 (2–100, step 1); d = 3 (1–50, step 1)no
stochrsiStochastic RSIrsi_p = 14 (2–100, step 1); k = 14 (2–100, step 1); d = 3 (1–50, step 1)no
ultoscUltimate Oscillatorp1 = 7 (2–100, step 1); p2 = 14 (2–200, step 1); p3 = 28 (2–400, step 1)no
vortexVortexperiod = 14 (2–200, step 1)no
chande_kroll_stopChande Kroll Stopp = 10 (2–200, step 1); x = 1 (1–10, step 1); q = 9 (2–200, step 1)no
asiAccumulative Swing Indexlimit = 1 (0.1–10, step 0.1)no
fisherFisher Transformperiod = 9 (2–100, step 1)no
connors_rsiConnors RSIrsi_p = 3 (2–100, step 1); streak_p = 2 (2–100, step 1); rank_p = 100 (10–500, step 1)no
relative_vigorRelative Vigor Indexperiod = 10 (2–200, step 1)no
acAccelerator Oscillatornoneno

Using them

In a Rhai strategy an indicator is a call by id with its parameters in registry order — rsi(…) — and the Studio's indicators pane offers the same catalog with each parameter's sweep range pre-filled from the defaults below. From Rust, vike_indicators::make(id) builds the default instance and make_with(id, &params) the parameterised one; both consult the same registry row this table was rendered from.

On this page