I am trying to build a continuos system, always in the market, with the following code:
if (a == true)
{
EnterLongStop(DefaultQuantity, MyHigh, "");
}if (b == true)
{EnterShortStop(DefaultQuantity, MyLow, "");
}
However, it does not always reverse, sometimes it just closes the long position without going short (or viceversa) but sometimes it does it alright. I have read the Order Handling Rules and I understand NT sometimes ignore StopOrders but I do not see why.
Any comments?
Thanks!

Comment