TIndexBuffer
Description
Example Usage
// Create a new buffer
const buffer = this.api.CreateIndexBuffer();
// Assign the buffer to an index
this.api.SetIndexBuffer(0, buffer);
// Store values in the buffer
for (let i = 0; i < this.api.Bars(); i++) {
buffer[i] = calculateValue(i);
}
// Access values from the buffer
const currentValue = buffer[0];
const previousValue = buffer[1];
// Use buffer values in calculations
const difference = buffer[0] - buffer[1];Last updated