linregmid
Linear regression mid (LSMA)
Reference/Bands & channels/Function
linregmid(source, length, deviation)
Same as lsma — the regression endpoint.
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 100 | Lookback in bars. Default 100. |
Return value
series
Short form: if the first argument is a number, Dovee uses close as the source.
Example
plot linregmid(100) as "LinReg"