2024-05-17 11:39:14:856|3|4|Strategy 'UpdateOrderTest/319956703': An Enter() method to submit an entry order at '05/17/2024 11:39:11' has been ignored. Please search on the term 'Internal Order Handling Rules that Reduce Unwanted Positions' in the Help Guide for detailed explanation.
I looked up the rules and didn't see what I was breaking. Could I get some advice on what's going wrong here? The code is below.
#region OnOrderUpdate - Additional short entries
protected override void OnOrderUpdate(Cbi.Order order, double limitPrice, double stopPrice,
int quantity, int filled, double averageFillPrice,
Cbi.OrderState orderState, DateTime time, Cbi.ErrorCode error, string comment)
{
//ensure the correct instrument and order name
if (order.Instrument == Instrument && orderState == OrderState.Filled &&
(order.Name == "VWMA Reversal" || order.Name == "VWMA Reversal Continuation")){
orderSize = (int)((accountSize / (25)) / Closes[1][0]);
if (Position.Quantity < orderSize * EntriesPerDirection){
EnterShortLimit(0,false,orderSize,GetCurrentBid()*.99,"VWMA Reversal Continuation");
Print(Instrument + " new Reversal Cont = " + GetCurrentBid()*.99);
}
}
}
#endregion

Comment