I think there is a bug in the average order price (Portfolio[pair].AveragePrice)

the field show always the average BEFORE the latest order, so for the first order, the average is zero, for the second order, the average equals to the price of the first order, ect..

anyone checked this ?