SetIndexDrawBegin
Sets the starting bar for drawing a buffer.
Syntax
Parameters
bufferIndex
- A number representing the index of the buffer.paintFrom
- A number representing the bar index to start drawing from.
Return Value
This method does not return a value.
Description
The SetIndexDrawBegin
method sets the starting bar for drawing a buffer. This is useful for indicators that require a certain number of bars to initialize before they can produce meaningful values. By setting the draw begin point, you can prevent the indicator from displaying potentially misleading values during its initialization period.
Example
Last updated