I started doing my monthly updates to my trading scripts, and Ninjatrader 8 doesn't seem to want to print "Print" statements anymore, in either Output 1 or Output 2.
Here's what I'm looking at. I'm essentially wanting these to print at the first tick of every 20 tick bar:
for (xCount=0; xCount<BUpper.Length; xCount++)
{
BUpper[xCount] = Math.Round(Bollinger(2,12).Upper[xCount],2);;
BMiddle[xCount] = Math.Round(Bollinger(2,12).Middle[xCount],2);;
BLower[xCount] = Math.Round(Bollinger(2,12).Lower[xCount],2);;
BSpread[xCount] = Math.Round((BUpper[xCount] - BLower[xCount]) * 100, 0);
Print("BUpper[" + xCount + "] = " + BUpper[xCount]);
Print("BMiddle[" + xCount + "] = " + BMiddle[xCount]);
Print("BLower[" + xCount + "] = " + BLower[xCount]);
Print("BSpread[" + xCount + "] = " + BSpread[xCount]);
Print("-----------------------------------------------");
}
There's also this code outside the for loop:
Print("BRange_UpperDirection = " + BRange_UpperDirection);
Print("BRange_MiddleDirection = " + BRange_MiddleDirection);
Print("BRange_LowerDirection = " + BRange_LowerDirection);
Print("====================================================");
Starting and restarting Ninjatrader 8 doesn't seem to get anywhere. What else should I try?

Comment