I'm trying to fill the zone between MACD signal and average
It is filled but it does not always respect the colors
The condition I use is Diff> 0 and I have verified that it is true without problem
Can there be an error in these lines?
...
if (Diff[0] >= 0)
{
Draw.Region(this, "ColorUP", CurrentBar, 0, MACD(Fast, Slow, Smooth), MACD(Fast, Slow, Smooth).Avg, null, Brushes.Lime, 30);
}
else
{
Draw.Region(this, "ColorDOWN", CurrentBar, 0, MACD(Fast, Slow, Smooth).Avg, MACD(Fast, Slow, Smooth), null, Brushes.Red, 50);
}
...
Thank you

Comment