Documentation/AlgoCode/Function reference

smi

Stochastic Momentum Index

Reference/Oscillators/Function

smi(length, signal)

Double-smoothed stochastic, typically −100 to 100. Default K 14, D 3. Sister: smisignal.

Parameters

NameTypeDescription
lengthint
default 14
K lookback. Default 14.
signaloptionalint
default 3
Signal smoothing.

Return value

series

Example

oscillator
plot smi(14, 3) as "SMI"
plot smisignal(14, 3) as "Signal"
when smi(14) crosses above smisignal(14) then buy

See also