Lipi Reference Lipi

Types

hline

Keyword used to draw a horizontal line on the chart at a specified price level. It is commonly used to mark key levels such as support, resistance, or static reference points.

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)