I encountered a visual problem on plotting lines in the chart.
That's how the chart should look like, and is shown after the strategy/indicator is applied to the chart:
After reloading ninjatrader script or after the chart updates I get this: The plotting is displaced by some points
Any advice on this?
In code I use
in set default state:
AddPlot(new Stroke(Brushes.Gray, DashStyleHelper.DashDot, 2f), PlotStyle.Line, "Plot1"); AddPlot(new Stroke(Brushes.Gray, DashStyleHelper.DashDot, 2f), PlotStyle.Line, "Plot2");
ausenstaebe = new Series<bool>(this,MaximumBarsLookBack.Infinite); oberkante = new Series<double>(this,MaximumBarsLookBack.Infinite); unterkante = new Series<double>(this, MaximumBarsLookBack.Infinite);
Values[0][0] = currentHigh; Values[1][0] = currentLow; oberkante[0] = currentHigh; unterkante[0] = currentLow; ausenstaebe[0] = true;
Best regards,
Johnny
Comment