I'm building a custom indicator and it has compiled correctly. However, when I try to add arrows up / down onto the Price panel, my code will no longer compile.
Here is the code block:
if (CurrentBar > 0)
{
if (macdHistogram > Values[0][1])
{
PlotBrushes[0][0] = Brushes.Green;
Draw.ArrowUp(this, "arrowUp" + CurrentBar, false, 0, Low[0] - TickSize, Brushes.Green, drawOnPricePanel: true);
}
else if (macdHistogram < Values[0][1])
{
PlotBrushes[0][0] = Brushes.Red;
Draw.ArrowDown(this, "arrowDown" + CurrentBar, false, 0, High[0] + TickSize, Brushes.Red, drawOnPricePanel: true);
}
else
{
PlotBrushes[0][0] = Brushes.Gray;
I'm getting this error:
The name 'Draw' does not exist in the current context | CS0103 | 58 | 21 |
Comment