SetIndexBuffer
Syntax
SetIndexBuffer(bufferIndex: number, buffer: TIndexBuffer): voidParameters
Return Value
Description
Example
// Specify that the indicator uses 3 buffers
this.api.IndicatorBuffers(3);
// Create buffers
const upperBuffer = this.api.CreateIndexBuffer();
const middleBuffer = this.api.CreateIndexBuffer();
const lowerBuffer = this.api.CreateIndexBuffer();
// Assign buffers to indices
this.api.SetIndexBuffer(0, upperBuffer);
this.api.SetIndexBuffer(1, middleBuffer);
this.api.SetIndexBuffer(2, lowerBuffer);
// Now the buffers can be used to store indicator valuesLast updated