EnterLongStopMarket(Convert.ToInt32(ContratosBuy), PrecioEntrada, @"LARGOS");
EnterShortStopMarket(Convert.ToInt32(ContratosSell ), PrecioEntrada, @"CORTOS");
protected override void OnOrderUpdate(Order order, double limitPrice, double stopPrice, int quantity, int filled, double averageFillPrice, OrderState orderState, DateTime time, ErrorCode error, string nativeError)
{
if (order.Name == "LARGOS" || order.Name == "CORTOS")
OrdenEntrada = order;
}
Comment