Are this the steps I need to take?
1) under setdefault add...
AddPlot(new Stroke(Brushes.Gray, DashStyleHelper.Dash, 1), PlotStyle.Line, "p1");
AddPlot(new Stroke(Brushes.Gray, DashStyleHelper.Dash, 1), PlotStyle.Line, "p2");
AddPlot(new Stroke(Brushes.Gray, DashStyleHelper.Dash, 1), PlotStyle.Line, "p3");
AddPlot(new Stroke(Brushes.Gray, DashStyleHelper.Dash, 1), PlotStyle.Line, "p4");
AddPlot(new Stroke(Brushes.Gray, DashStyleHelper.Dash, 1), PlotStyle.Line, "p5");
AddPlot(new Stroke(Brushes.Gray, DashStyleHelper.Dash, 1), PlotStyle.Line, "p6");
2) under onbarupdate, after draw fib, add...
fib=Draw.FibonacciRetracements(this,"fib",IsAutoSc ale,barsSinceLow,Low[barsSinceLow],barsSinceHigh,High[barsSinceHigh]);
ClearOutputWindow();
foreach (PriceLevel p in fib.PriceLevels)
{
if (p.Value == 0)
{
p1[0] = p.GetPrice(fib.StartAnchor.Price, fib.EndAnchor.Price - fib.StartAnchor.Price, false);
}
if (p.Value == 23.6)
{
p2[0] = p.GetPrice(fib.StartAnchor.Price, fib.EndAnchor.Price - fib.StartAnchor.Price, false);
}
if (p.Value == 38.2)
{
p3[0] = p.GetPrice(fib.StartAnchor.Price, fib.EndAnchor.Price - fib.StartAnchor.Price, false);
}
if (p.Value == 50)
{
p4[0] = p.GetPrice(fib.StartAnchor.Price, fib.EndAnchor.Price - fib.StartAnchor.Price, false);
}
if (p.Value == 61.8)
{
p5[0] = p.GetPrice(fib.StartAnchor.Price, fib.EndAnchor.Price - fib.StartAnchor.Price, false);
}
if (p.Value == 76.4)
{
p6[0] = p.GetPrice(fib.StartAnchor.Price, fib.EndAnchor.Price - fib.StartAnchor.Price, false);
}
}
this is what I get (attached images)
I dont see the lvls on my price chart, I also see the gray lines where I assume the 23.6% lvl is, but not for any other levels.
I assume I did something wrong here.

Comment