I'm wanting to catch a complete trade, that is price when entry order is filled, and price when target limit is filled (or stop loss).
It's also for other purposes, not just for price.
I have on Entry:
EnterLongLimit(ContractQuantity, Close[0], "EnterLong");
OnExecutionUpdate:
Print("OnExecutionUpdate: Name " + execution.Name + ". " + execution.Price);
case OrderState.Filled:
{
Print("OnOrderUpdate: Name " + order.FromEntrySignal + ". Order is completely filled ");
break;
}
The .Name and order.FromEntrySignal both print out blank.
Many Thanks, Caesar.

Comment