I am trying to convert an indicator from NT7 to NT8 and I'm having trouble resolving this piece of code so that it will work with NT8.
When I use "BarBrushes[0] = Color.FromArgb(alpha, BarBrushes[0]);" in NT8, I get Error: There is argument given that corresponds to the required formal parameter 'g' of 'Color.FromArgb(byte, byte, byte, byte)
In NT7 the syntax was public static Color FromArgb(int alpha, Color baseColor). I've been googling for over an hour and I can't find an equivalent method for Brushes.
I need to apply an alpha to the bar brush color to show its an Up bar with close > open.
Since NT8 uses Brushes and not Color, I don't know how to use Color.FromArgb with Brushes.
Can you please help me with converting this line of code below in BOLD to NT8 ?
Thank you
NT7 Code:
private Color downColor = Color.Salmon;
if(Close[0] > Open[0])
BarColor = Color.FromArgb(alpha, BarColor);
else
BarColor = downColor;
NT8 Code:
private Brush downColor = Brushes.Salmon;
if (Close[0] > Open[0])
BarColor = ?????
else
BarBrushes[0] = downColor;
Comment