Lookback is set as input parameter. int 30
double avg = SMA(Close, Lookback)[0];
Draw.Line(this, "SM1", false, Lookback, avg, 0, avg, Brushes.LimeGreen, DashStyleHelper.Dot, 2);
If I set Lookback to 10, I can see the line but if i set it to 30 there's no lines...
What I'm trying to do is horizontally draw the final value of SMA last 30 bars.
Comment