This happened inside OnRender()
Are you guys gonna to do something with your RoundToTickSize()?!
Could you check the array size, please?!
platformsupport@ didn't help and asked for samples to reproduce this sporadic bug
That's why I'm posting here.
What do you think, guys? Should Ninja fix their bugs ASAP or should to wait for samples with eyes closed?
Trace:
2018-07-09 19:23:56:845 ERROR: Thread: 21 Hash: 16346871 NinjaTrader.NinjaScript.Strategies.DOMPressure2 1.0.1 beta State: Realtime Exception: Index was outside the bounds of the array. Source: NinjaTrader.Core Stack: at NinjaTrader.NinjaScript.NinjaScriptBase.get_Instru ment() at MZpack.NT8.CoreIndicator.YidOVJiZtFKnKarNvtO(Objec t ) at MZpack.NT8.CoreIndicator.get___Instrument() at MZpack.NT8.CoreIndicator.RoundToTickSize(Double price) at MZpack.NT8.FootprintBar.RenderFootprint(Int32 footprint, FootprintRenderArgs e) at MZpack.NT8.FootprintBar.Render(RenderArgs e) at MZpack.FootprintBarsBase.qXY1t4eibo4drgkyJ6e(Objec t , Object ) at MZpack.FootprintBarsBase.Render(RenderArgs e) at MZpack.FootprintBaseMVC.Render(RenderArgs e) at MZpack.NT8.FootprintMVC.Render(RenderArgs e) at MZpack.NT8.mzFootprint.Render(ChartControl chartControl, ChartScale chartScale) at MZpack.NT8.MZpackStrategyBase.yJti4ZrrmyeVNAgwEyK( Object , Object , Object ) at MZpack.NT8.MZpackStrategyBase.OnRender(ChartContro l chartControl, ChartScale chartScale)
[XmlIgnore()] [Browsable(false)] public Instrument __Instrument => strategy.Instrument;
public double RoundToTickSize(double price)
{
if (__Instrument != null && __Instrument.MasterInstrument != null)
{
return __Instrument.MasterInstrument.RoundToTickSize(price);
}
else
return 0;
}
public abstract class CoreIndicator :
IIndicator, IPlatformIndicator
{
protected MZpackStrategyBase strategy; // Master strategy
Comment