At some point of the code an entry is set, in this case a short one and then i try to set a BuyLimit to set the TP and a BuyStopMarket to set the stop loss but NT8 only set one of them.
In this case the EnterLongLimit is set but not the EnterLongStopMarket, if i comment the EnterLongLimit of change the order, the EnterLongStopMarket is set but not the EnterLongLimit.
I really don't get it, so anyone has a clue about it?
Thanks!
.....
else if (position.MarketPosition == MarketPosition.Short)
{
EnterLongLimit(lots, takeProfit, "BuyLimitEntry");
EnterLongStopMarket(lots, stopLoss, "BuyStopMarketEntry");
}

Comment