I'm attempting to fill in the areas between the middle and lower regression channel lines using DrawRegion() but seem to be coloring between the actual linear regression line and its deviation. I have the following at the bottom of protected override void OnBarUpdate():
Middle.Set(middle); Upper.Set(middle + stdDeviation * Width); Lower.Set(middle - stdDeviation * Width); DrawRegion("tag1", CurrentBar, 0, RegressionChannelRegion(period, 4).Lower, RegressionChannelRegion(period, 4).Middle, Color.Empty, Color.Lime, 2);
Thanks for any help anyone can provide.
Comment