If Exitlong is filled, we aren't in MarketPosition.Long, then why it places the order again? I thought maybe it was because the latency o something, but I bought a good vps and it's still the same. thanks
if ((Position.MarketPosition == MarketPosition.Long)
&& (Value == 3)
&& (Close[0] < Primertrigger))
{
ExitLongStopMarket(Convert.ToInt32(DefaultQuantity ), Stoploss, "", "");
ExitLongLimit(Convert.ToInt32(DefaultQuantity), Profitvalue, "", "");
}

Comment