Get buffer value
Syntax
this.someBuffer.getValue(index);Parameters
Return Value
Description
Example
// Get the value from buffer 0 at the current bar
const currentValue = this.someBuffer.getValue(0);
// Get the value from buffer 0 at the previous bar
const previousValue = this.someBuffer.getValue(1);
// Get a value from another buffer
const signalValue = this.someBuffer.getValue(0);
// Use values in calculations
const difference = currentValue - signalValue;Last updated