have you seen this error generated during an execution of a strategy ? Any idea? I wander what could cause it.
The account is playback and the error happens while playing it. I don't have the problem in historical, all text get drawing correctly.
My code is
if (My OrderSubmitted)
{
int ccc = CurrentBar;
int ccc2 = -ccc;
double yPos1 = Hight[0];
if (drawLabels) Draw.Text(strat, ccc.ToString(), this.DebugStr, 0, yPos1);
}
The code is really plain simple. It submits orders and then draws a Text under the entry line
Interesting is that I get the error only with texts, not the arrows. The Text is always "LSM";
The attached image shows all variables in the class Draw of @Text.cs original NinjaTrader code.
Best
Gio

Comment