I have created an indicator which uses two lines:
AddLine(Brushes.Crimson, Value1, "BandInf");
AddLine(Brushes.Green, Value2, "BandaSup");
Value 1 is 1.0 and Value 2 is 2.0.
I would like to know how to color the region between those two lines (which use two double values). I tried to do it using Draw.Region():
Draw.Region(this, "tag1", CurrentBar, 0, Value1, Value2, null, Brushes.Blue, 50);
But it does not allow me to do that. I get an error message which says that the variables can't be converted.
Is there any way to do it?
Thank you!
Comment