if (this.BreakOut)
{
DrawRegion("Region1" + this._intStartBar.ToString(), CurrentBar - this._intStartBar + 1, 0, Plot1, Plot2, Color.Empty, up_Color, up_Opacity);
}
whereby "up_Color" and "up_Opacity" are user definable. Works beautiful but ...
I would like to change this using "Color.FromArgb" as that would allow an even more fine tuned coloring of the regions.
I tried this:
{
DrawRegion("Region1" + this._intStartBar.ToString(), CurrentBar - this._intStartBar + 1, 0, Plot1, Plot2, Color.Empty, Color.FromArgb(up_Opacity, up_Color));
}
but then got the error message that DrawRegion takes 7 arguments.
I then tried this:
{
DrawRegion("Region1" + this._intStartBar.ToString(), CurrentBar - this._intStartBar + 1, 0, Plot1, Plot2, Color.Empty, Color.FromArgb(up_Opacity, up_Color), up_Opacity);
}
which works but with Opacity levels from 1-5 only, not 1-255.
Help please.
How do I properly incorporate this Color.FromArgb into the DrawRegion command.
sandman
(PS: I am not really programmer but work by looking at other indicator codes and then with trial and error to make it work for what I want.)
Comment