With the UNMANAGED APPROACH.
For som reason this code is not canceling the LngOrder3 and submitiing the LngOrder1BE order, I can´t find the error
protected override void OnExecution(IExecution execution)
if((BESrtOrder1 != null && BESrtOrder1 == execution.Order) && (LngOrder3 !=null) && (LngOrder1BE == null))
{
BESrtOrder1 = null;
CancelOrder(LngOrder3);
LngOrder1BE = SubmitOrder(0,OrderAction.Buy, OrderType.Stop,lotes,0,upper+(TickSize*offSet),"", "");
}
Any clue about it?
Thanks a lot in advance.

Comment