SetIndexDrawBegin
Syntax
SetIndexDrawBegin(bufferIndex: number, paintFrom: number): voidParameters
Return Value
Description
Example
// For a 14-period moving average, don't draw the first 13 bars
this.api.SetIndexDrawBegin(0, 13);
// For a 26-period EMA, don't draw until we have enough data
this.api.SetIndexDrawBegin(0, 25);
// For MACD with 12 and 26 periods, don't draw until we have enough data for both
this.api.SetIndexDrawBegin(0, 25); // MACD line
this.api.SetIndexDrawBegin(1, 33); // Signal line (26 + 9 - 1)Last updated