if (State == State.SetDefaults)
{
...
ColorRA = Brushes.Cyan;
...
RAOpacity= 30;
---
protected override void OnBarUpdate()
{
...
Draw.Rectangle(this, "RA"+CurrentBar, false, barsAgo, Highs[0][HighestBar(High, barsAgo)], 0, Lows[0][LowestBar(Low, barsAgo)], Brushes.Transparent, ColorRA, RAOpacity);
---
[NinjaScriptProperty]
[XmlIgnore]
[Display(Name="RA Region", Description="Color for painted region", Order=0, GroupName="01. Regions Colors")]
public Brush ColorRA
{ get; set; }
[Browsable(false)]
public string ColorRASerialize
{
get { return Serialize.BrushToString(ColorRA); }
set { ColorRA= Serialize.StringToBrush(value); }
}
---
[NinjaScriptProperty]
[Range(1, int.MaxValue)]
[Display(Name="Rectangle Opacity", Description="Opacity of region", Order=1, GroupName="02. regions Opacities")]
public int RAOpacity
{ get; set; }
The output is as this
What's preventing the correct opacity to display?
I looked at the documentation and multiple forum threads but no solution found.
Comment