i want to see delta change amount in candle 0 and candle 1 as below script:
double deltachange0=(barsType.Volumes[CurrentBar].BarDelta) - (barsType.Volumes[CurrentBar-1].BarDelta); //for candle 0 close
double deltachange1=(barsType.Volumes[CurrentBar].BarDelta) - (barsType.Volumes[CurrentBar-2].BarDelta); // for candle 1 close
Draw.TextFixed(this, "", "deltachange0: "+ deltachange0 + "\ndeltachange1: " + deltachange1, TextPosition.TopLeft);
problem is delta change 1 amount is not displayed and script dont know CurrentBar-2
how can i solve it?
Best regard.

Comment