I think I found a bug with the CMC markets Profit/Loss screen....

  1. 519 Posts.
    lightbulb Created with Sketch. 3
    I think I found a bug with the CMC markets Profit/Loss screen. Unless I'm going crazy or doing math wrong. Can someone check my work?

    This is today's trades on HIO, from the Order History page (into a CSV):
    https://hotcopper.com.au/data/attachments/4315/4315876-88a9d772f3dcb3593580940ce03d1989.jpg

    Nevermind the measy $25 profit that I took or the fact my remaining holdings are under water...
    So you can see I made four BUYs and one SELL. I bought 12000 shares for $8754.60, so the average price was 0.73
    I then sold 3000, and had 9000 shares left that originally cost me $6839.70. The average price for my remaining shares goes to 0.76

    This is where it gets weird, on the CMC page it's still showing 0.73 as the average price, and therefore showing the cost incorrectly too. Screencap from the page:
    https://hotcopper.com.au/data/attachments/4315/4315904-1f33a9ad079e7bfc07e04636264d7de5.jpg
    So it still has the original average price, and is multiplying that by Units Held to get $6565.95, which is not what the 9000 shares cost me.
    Am I missing something or are those values incorrect?

    ...HIO closed strong and I should get my cash out tomorrow with more than $25 wink.png
 
arrow-down-2 Created with Sketch. arrow-down-2 Created with Sketch.