SetBufferShift
Syntax
SetBufferShift(bufferIndex: number, shift: number): voidParameters
Return Value
Description
Example
// Shift buffer 0 forward by 5 bars (into the future)
this.api.SetBufferShift(0, 5)
// Shift buffer 1 backward by 3 bars (into the past)
this.api.SetBufferShift(1, -3)
// Use shifting to create a predictive indicator
const predictionPeriod = 10
this.api.SetBufferShift(0, predictionPeriod)Last updated