Hi everyone,
I want to use spilled array formulas to calculate PnL per trade based on a table containing all trades and the relevant data.
The page "Ledger" contains the raw data.
The page "Trade PnL" contains:
1. The alphabetically sorted spilled arrays.
2. The results I'd expect calculated manually i.e. without spilled arrays.
3. My experiments and what I've got so far.
As you'll see, it gets trickier when there are multiple buys end sells before a position is finally closed (Marked yellow in the sheet).
Maybe I'm making it too complicated, maybe I'm incompetent, who knows :D
Thank you very much for your help and ideas.
I use basket averages to calculate the PnL.
Best,
calle
Bookmarks