Lipi Reference Lipi

Types

hline

The value `hline` gives back once it has drawn a horizontal level. It plays the same part as a plot value in the other `fill` form: two hline values shade the band between two levels. Mixing one with a plot is not accepted — the two forms of `fill` are separate. No fields.

Example


          indicator("hline Example", overlay=true)
// Draw a horizontal line at 100
hline(100, title="Static Line", color=color.red, linewidth=2, style=hlineStyle.dotted)