I am getting an error message:
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 == [B]Order_Name[/B])
{
entryOrder = order;
}
Order_Name is private string variable defined at the beginning of the script. My objective is to refine the code to make it more dynamic for submitting multiple/unique orders without writing the order name every time in OnOrderUpdate method.
I want to know if there is another way to do this or why this would not work.
Thanks,

Comment