if (Largos && OrdenEntrada11 != null)
{
var prueba = OrdenEntrada11.Quantity;
OrdenCierre = submissionAccount1.CreateOrder(ActivoReplica, OrderAction.Sell, OrderType.Market, OrderEntry.Automated, TimeInForce.Day, OrdenEntrada11.Filled, 0, 0, string.Empty, "CIERRE REPLICA", Globals.MaxDate, null);
submissionAccount1.Submit(new[] { OrdenCierre });
submissionAccount1.Cancel(new[] { OrdenEntrada11 });
OrdenEntrada11 = null;
}
Then, as seen in the code, when I close the entry of the mother account and by not passing the order entry 11 to null, after closing it in the chart, it places the closing order that I should not place since entry 11 has already been closed.
Comment