I keep getting a single warning message in the Output window with each backtest:
"**NT** An Enter() method to submit an entry order at '22/01/2001 21:00:00' has been ignored. Please search on the term 'Internal Order Handling Rules' in the Help Guide for detailed explanation."
I'm using 60 mins bars and my strategy is simple:
[FONT=Courier New]goLong = false;
goShort = false;
if (SMA(longLen)[0] > SMA(longLen)[1])
{
goLong = true;
}
if (SMA(shortLen)[0] < SMA(shortLen)[1])
{
goShort = true;
}
if (Position.MarketPosition == MarketPosition.Flat)
{
if (goLong && !goShort)
{
EnterLongLimit(Close[0] - longRange, "Go Long");
}
if (goShort && !goLong)
{
EnterShortLimit(Close[0] + shortRange, "Go Short");
}
trailStop = 0;
}[/FONT]
Can you tell me what NT is complaining about?

Comment