Missat svar här:
ADLine är
if (Breadth.Sum1[0] + Breadth.Sum2[0] > 0)
plot1[0] = plot1[-1] + (Breadth.Sum1[0] - Breadth.Sum2[0]) / (Breadth.Sum1[0] + Breadth.Sum2[0]);
else
plot1[0] = plot1[-1];
och Breddvillkor:
Breadth.Sum1[0] = Close[0] > Close[-1]
Breadth.Sum2[0] = Close[0] < Close[-1]