AddLevel
Last updated
Last updated
Adds a horizontal level line to the indicator.
value
- A number representing the Y-value where the level should be drawn.
style
- A value from the enum specifying the line style.
width
- A number representing the line width in pixels.
color
- A string hex color value for the level line.
opacity
- A number between 0 and 1 representing the opacity of the line.
This method does not return a value.
The AddLevel
method adds a horizontal level line to the indicator window. This is commonly used for indicators like RSI or Stochastic to mark overbought and oversold levels.
See for available line styles