Lipi Reference
Lipi

Types

hlineStyle

Three line styles for a horizontal level: `solid`, `dashed` and `dotted`. The smallest of the five sets, and the only one used by `hline`. It is not interchangeable with `plotStyle`.

Fields / Members

solid A solid line (default).
dashed A dashed line.
dotted A dotted line.

Example


          //@lipi=2
indicator("hlineStyle Example", overlay=false)
hline(70, title="Overbought", color=color.red, style=hlineStyle.dashed)
hline(50, title="Middle", color=color.gray, style=hlineStyle.dotted)
hline(30, title="Oversold", color=color.green, style=hlineStyle.solid)
plot(talib.rsi(close, 14), title="RSI", color=color.blue)