Home/Dovee/Function reference

tsi

True Strength Index

Reference/Oscillators/Function

tsi(source, long, short)

Double-smoothed momentum, typically −100 to 100. Defaults long 25, short 13. Sister: tsisignal.

Parameters

NameTypeDescription
sourceoptionalseries
default close
Series to use. Omit it when the first argument is a number — ema(9) means ema(close, 9).
longoptionalint
default 25
First smoothing.
shortoptionalint
default 13
Second smoothing.

Return value

series

Short form: if the first argument is a number, Dovee uses close as the source.

Example

oscillator
plot tsi() as "TSI"
plot tsisignal() as "Signal"
level 0 as "Zero" gray
when tsi() crosses above tsisignal() then buy

See also