I've added opaque bands when the stochastics becomes overbought or oversold. Since I am not plotting a continuous band of one color, I've had to use the code below. Unfortunately "bars ago" has to be set to "1" which means it is plotting the band one bar behind as well as the current bar. Please see the picture to see what I mean.
if (CurrentBar > 0) { if (DUpper[0] >= 75) DrawRegion("tag1"+ CurrentBar,1, 0, DUpper, 75, Color.Empty, Color.Lime, 1); if (DLower[0] <= 25) DrawRegion("tag2"+ CurrentBar,1, 0, DLower, 25, Color.Empty, Color.Red, 1); }
Comment