SetIndexStyle
Last updated
Last updated
Sets the visual style for a buffer.
bufferIndex
- A number representing the index of the buffer to style.
type
- A value from the enum specifying how to draw the buffer.
style
- A value from the enum specifying the line style.
width
- A number representing the line width in pixels.
clr
- A string hex color value for the buffer.
isVisible
- (Optional) A boolean indicating whether the buffer should be visible.
This method does not return a value.
The SetIndexStyle
method sets the visual appearance of a buffer on the chart. This includes the drawing style (line, histogram, etc.), line style (solid, dashed, etc.), width, color, and visibility.
See for available drawing styles, for line styles