in the Data Box.
HOWEVER, the TrendLine plotted is a zig zag rather than a straight line. I'm confident my coding format is OK as I plot several other indicators that behave perfectly. I guess there's
something different about trend lines.
Any insight, ye masters of Ninjascript?
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
Name = "Plot TrendLines;
AddPlot(new Stroke(Brushes.CornflowerBlue, 2), PlotStyle.Line, "TrendLines1");
protected override void OnBarUpdate()
{
TrendLines1[0] = TrendLines(Close, 10, 1, 25, false)[0];
}
public Series<double> TrendLines1
{ get { return Values[0]; }}
}
}

Comment