Signature
Quick example
Options
number
required
Left x coordinate (bar index).
number
required
Bottom y coordinate (price).
number
required
Right x coordinate (bar index).
number
required
Top y coordinate (price).
string
Fill color as
#RRGGBBAA. Use low alpha for zone overlays (e.g. #a78bfa20). Default: transparent.number
Corner radius in pixels. Default:
0.string
Border color as
#RRGGBBAA.number
Border width in pixels. Default:
1.string
"solid", "dotted", or "dashed". Default: "solid".string
Extend the box in a direction. One of:
"none", "left", "right", "up", "down", "both_x", "both_y". Default: "none".string
Label text rendered inside the box.
string
Font size preset:
"xs", "sm", "md", "lg", "xl", "auto". Default: "md".string
Text color as
#RRGGBBAA.string
Horizontal text alignment:
"left", "center", "right". Default: "center".string
Vertical text alignment:
"top", "center", "bottom". Default: "center".string
"none" or "auto". Default: "auto".number
Stacking order. Default:
0.boolean
Render in main price pane even from a sub-pane indicator. Default:
false.Handle methods
Order block detection example
Related pages
Line
For lines rather than rectangular zones.
Constants
extend.* and size.* enum values.
Order blocks example
Full working order block indicator.