Tool
Level Line Object
object.level_line
Inputs
The anchor Point (time+price) — wire a zigzag-pattern point handle or any tool emitting the same Point shape.
Outputs
A chart-object sink — it draws on the terminal chart and outputs nothing. Nothing can be wired from it.
Level Line Object draws a horizontal line at the anchor's price or a vertical line at its time — the classic support/resistance or session marker, driven by the wired point.
How it works
Wire a Point stream into 'point'. hline reads the point's price and draws a horizontal level; vline reads its time and draws a vertical marker. Single placement (default) moves one line to the latest confirmed point; stamped placement leaves one line per confirmation under the FIFO cap.
Modes
Mode options
A horizontal level at the anchor's price.
A vertical marker at the anchor's time.
Placement options
One object per confirmed anchor, oldest removed beyond the cap.
One object that follows the latest confirmed anchor.
Line style options
An unbroken line.
A dashed line. Width above 1 forces solid — a platform rule.
A dotted line. Width above 1 forces solid — a platform rule.
Alternating dashes and dots. Width above 1 forces solid.
A dash followed by two dots. Width above 1 forces solid.
Configuration
hline = horizontal price level; vline = vertical time marker.
How the object tracks the anchor stream: 'stamped' leaves one object per triggering bar (capped by max_objects); 'single' keeps one object moved in place.
Stamped-placement cap: the oldest object is removed once more than this many are on the chart (FIFO).
Object color (#rrggbb).
Line / border / glyph width in pixels.
Line pattern for line-drawing styles. The platforms force solid when width is above 1.