Brush shortBrush = new SolidColorBrush(Color.FromArgb(100, 79, 19, 62));
shortBrush.Freeze();
Brush longBrush = new SolidColorBrush(Color.FromArgb(100, 22, 64, 24));
longBrush.Freeze();
if((ema50A[0] < ema50B[0]) && (ema50B[0] < ema200A[0]) && (ema200A[0] < ema200B[0]))
{
//BackBrushes[0] = Brushes.Pink;
BackBrushes[0] = shortBrush;
}
else if((ema50A[0] > ema50B[0]) && (ema50B[0] > ema200A[0]) && (ema200A[0] > ema200B[0]))
{
//BackBrushes[0] = Brushes.Lime;
BackBrushes[0] = longBrush;
}
​
​
When I use the new RGB brushes, it only pick up the 2nd color
what am I doing wrong?
Comment