This used to be an intermittent issue, starts with the Chart screen disappearing the mouse pointer (i.e. no crosshairs at all), This happens after a Strategy Entry (submit order). I can right click on it, but anything after that freezes.
I typically use close NT, and then the Unhandles Exception dialog box shows up. I then have to use Task Manager to End Task NT.
I'd appreciate help in debugging this issue. It doesn't seem that my code is doing this as the dialog appears when the chart disappears along with my strategy.
Debugging using Visual Studio doesn't yield an error break (attached to NinjaTrader.exe).
NT version 8.1.1.6 64-bit
Long Entry:
if (Limit_1_Market_2 == 1)
{
PrintLog(1, "Strategy: Submitting Long Limit Order " + Close[0].ToString(format) + " Qty: " + ContractQuantity);
EnterLongLimit(ContractQuantity, Close[0], "EnterLongLimit");
}
else
{
PrintLog(1, "Strategy: Submitting Long Market Order" + " Qty: " + ContractQuantity );
EnterLong(ContractQuantity, "EnterLongMarket");
}
if (ReEntryEnabled && ReEntryCount == 0)
{
ReEntryCount = ReEntryCount + 1;
} else if (ReEntryEnabled && ReEntryCount > 0 && ReEntryCount < ReEntryMax)
{
ReEntryCount = ReEntryCount + 1;
PrintLog( 1, " Long ReEntry");
}
Short Entry
if((TradingDay[0] && ShowOtherPlots))
Trigger[0] = Low[0] - SecondaryPlotGap * 8 - SecondaryPlotOffset - PrimaryPlotOffset;
PrintLog( 3, "In submission 5");
ClearToSubmit = false;
if (Limit_1_Market_2 == 1)
{
PrintLog(1, "Strategy: Submitting Short Limit Order " + Close[0].ToString(format) + " Qty: " + ContractQuantity );
EnterShortLimit(ContractQuantity, Close[0], "EnterShortLimit");
}
else
{
PrintLog(1, "Strategy: Submitting Short Market Order" + " Qty: " + ContractQuantity );
EnterShort(ContractQuantity, "EnterShortMarket");
}
if (ReEntryEnabled && ReEntryCount == 0)
{
ReEntryCount = ReEntryCount + 1;
} else if (ReEntryEnabled && ReEntryCount > 0 && ReEntryCount < ReEntryMax)
{
ReEntryCount = ReEntryCount + 1;
PrintLog( 1, " Short ReEntry");
}

Comment