Set buffer value
Sets a value in a specific buffer at a given index.
Syntax
Parameters
index
- A number representing the position in the buffer to set the value at.value
- A number representing the value to store.
Return Value
This method does not return a value.
Description
The setValue
method of a buffer object sets a value in a specific buffer at a given index. This is used to store calculated indicator values in the buffer for display on the chart.
Example
Last updated