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
| Name | Type | Description |
|---|---|---|
sourceoptional | series default close | Series to use. Omit it when the first argument is a number — ema(9) means ema(close, 9). |
longoptional | int default 25 | First smoothing. |
shortoptional | int 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