AddLevel
Adds a horizontal level line to the indicator.
Syntax
AddLevel(value: number, style: TPenStyle, width: number, color: string, opacity: number): voidParameters
value- A number representing the Y-value where the level should be drawn.style- A value from the TPenStyle 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.
Return Value
This method does not return a value.
Description
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 TPenStyle for available line styles
Example
Last updated