Skip to content
Prev 13140 / 15274 Next

Backing out a portfolio snapshot?

Matt,

If you have all the trades, or at least the starting position and cost 
basis, and all the trades after that point, then blotter can do what you 
want.

see

?addTxns #loading everything in in one go

and

?getPos # for looking up positions as of a certain time

If you don't have the starting position and average cost, you can back 
into the starting position (but not average cost) by entering all the 
trades as though you started flat, and taking the difference to your 
ending position.

As to whether you could back out average cost, you'd have to tell us 
more about your inputs.

Regards,

Brian
On 02/06/2015 09:33 AM, matt at considine.net wrote: