Documentation Index
Fetch the complete documentation index at: https://docs.darvas.app/llms.txt
Use this file to discover all available pages before exploring further.
Signature
key is a unique string identifying this line’s slot. Calling Line with the same key replaces the prior line. See entities overview for the slot model.
Quick example
Options
Start x coordinate as a bar index.
Start y coordinate as a price level.
End x coordinate as a bar index.
End y coordinate as a price level.
Line color as
#RRGGBBAA hex. Default: chart accent color.Line width in pixels. Default:
1.Line style. One of:
"solid", "dotted", "dashed", "arrow.right", "arrow.left", "arrow.both". Default: "solid".Optional text label rendered near the line midpoint.
Stacking order. Higher values render on top. Default:
0.When
true, renders in the main price pane even if the indicator is on a sub-pane. Default: false.Style enum values
| Value | Description |
|---|---|
"solid" | Continuous line |
"dotted" | Dotted line |
"dashed" | Dashed line |
"arrow.right" | Arrowhead at the end (x2, y2) |
"arrow.left" | Arrowhead at the start (x1, y1) |
"arrow.both" | Arrowheads at both ends |
linestyle.* constants:
Handle methods
Dynamic S/R line example
Related pages
LineFill
Shade the area between two Line entities.
Box
Rectangular zone - use when you need width and height.
Constants
linestyle.* enum values.
Support/resistance example
Full working example using Line entities.