bbtrend
BBTrend
Reference/Oscillators/Function
bbtrend(source, short, long, mult)
Short Bollinger width minus long width, scaled by the long mid. Short form `bbtrend(20)` uses close.
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). |
length | int default 20 | Lookback in bars. Default 20. |
Return value
series
Short form: if the first argument is a number, Dovee uses close as the source.
Example
oscillator plot bbtrend(close, 20, 50, 2) as "BBTrend" level 0 as "Zero" gray