The Average Entry Price for a specific product is reset every time a position is closed (flattened)? In other words, when I retrieve the AvgEntryPrice, I'm not getting the average entry price over the entire day (session), correct?
For example, if I open a position in stock XYZ in the moring, buy 100 shares at $10, and then close (flatten) the XYZ position, my AvgEntryPrice for that trade equals 10. If in the afternoon I open a new position in XYZ and buy at a price of $20, my AvgEntryPrice should be 20, not 15 ((10+20)/2). Is that correct? So there is no carry over of entry prices?
I'm pretty sure that is how it works, but I need to double check.
Thanks for your help.
Comment