I´m working with NT8 now for months and all working fine as with NT7 but I have a problem in onorderupdate. I use the logic for OnOrderUpdate from the NT-sample, adding Backcoloring to see if its working. With my entryOrderSba1a=EnterShortLimit(0,true,1,GetCurren tBid(), "Sba1a"); (you can see in the attached screenshot filled) it does not Backbrush nor changing the bool.
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 (entryOrderSba1a != null && order.Name == "entryOrderSba1a")
{entryOrderSba1a = order;
if (order.OrderState == OrderState.Filled)
{shorttrade=true; BackBrush = Brushes.Orange;
}
// Reset the entryOrder object to null if order was cancelled without any fill
if (order.OrderState == OrderState.Cancelled && order.Filled == 0)
entryOrderSba1a = null;}
In the attached screenshot one can see that there is an entry from my entryOrderSba1a.
I try to resolve several times now but I cant figure it out what is the reason.
Thank you!
Tony
Comment