Hi I am trying to plot on the chart I have created with the strategy wizrd and it works as a strategy but when I try it as an indicator it wont plot at all. I must be missing something. I have tried bot draw dot and Plot but no dot.protectedoverridevoid Initialize()
{
Add(new Plot(Color.FromKnownColor(KnownColor.Violet), PlotStyle.Dot, "Plot0"));
Overlay = true;
}
protectedoverridevoid OnBarUpdate()
{
if (MACD(Fast, Slow, 1).Avg[0] > MACD(Fast, Slow, 2).Avg[1])
{
Plot0.Set( Low[0] + -10 * TickSize);
DrawDot("My dot" + CurrentBar, false, 1, Low[0] + -10 * TickSize, Color.OrangeRed);
}
}
Any help appreciated.

Comment