I have a question with regards to the following;
OnPositionUpdate(IPosition position)
if (position.MarketPosition == MarketPosition.Long) priorTrade = position.AvgPrice;
if (order.OrderState == OrderState.Filled) priorEntry = order.AvgFillPrice;
The code runs as expected but because I haven't done this before I was hoping for some feedback. I'd also like to ask is their any benefit to using one over the other or are they essentially the same?
Regards,
suprsnipes

Comment