A trade’s average entry price looks higher than its average exit price, yet the trade made money. Nothing is wrong with your data: TraderSync can work out the average in two ways, and only the average changes. Your profit does not.
Why it happens
A trade with more than one entry or exit order has an average entry and an average exit. One setting decides how those averages are calculated. It is in Settings > Trades, under Average Entry/Exit Price Calculation:
- Off (the default): each order is weighted by its size, so a 900-share order counts nine times as much as a 100-share order.
- On: the average is the total of the order prices divided by the number of orders, so every order counts the same, whatever its size.
The setting changes only the average entry and average exit you see (for example AVG Entry and AVG Exit in the trade detail). Your profit and loss, your cost and your return percent always use your real, share-weighted cost, in both modes.
An example
You buy 900 shares at $10.00, then 100 more at $14.00, and sell all 1,000 shares at $11.00. You paid $10,400, you sold for $11,000, and the trade made +$600 (illustrative, before fees). Here is what the trade shows:
| Setting | How the average entry is worked out | AVG Entry | AVG Exit | P&L |
|---|---|---|---|---|
| Off (default) | ($10 × 900 + $14 × 100) ÷ 1,000 shares | $10.40 | $11.00 | +$600 |
| On | ($10 + $14) ÷ 2 orders | $12.00 | $11.00 | +$600 |
With the setting On, the average entry ($12.00) is higher than the average exit ($11.00), which looks like a loss. It is not: the small $14 order counts as much as the big $10 order in the average, while your profit is still worked out from the $10,400 you actually paid.
How to make them match
- You want the average entry to line up with your profit: leave the setting Off. Each order is weighted by its shares, the same way your cost and profit are worked out.
- You want every order to count equally: turn it On, and expect the average entry or exit to sit away from what your P&L implies when your orders are very different sizes.
The switch works with the FIFO and LIFO cost basis methods. To change it, follow How to change the average entry price calculation.