Hi,
I would have a sell order match with a buy order, calculate the profit and loss for that particular trade
problems comes when there are multiple buy order and not enough sell order to square off the trade
need to write a vba/marco to have the sell order check for the earlier buy order and square off accordingly.
How should i write the formula ?
attached excel spreadsheet
spreadsheet has more details
Thank you for your time
Bookmarks