Could you please provide some advice?
I’m struggling to understand the data / object architecture between Positions and Trades. I would like to map between the two, but I’m not sure I understand the structure here.
The objective I’m trying to achieve is this;
I’m looking to build a log file which details the lifecycle of a trade. I’ve attached a sample file which is a single instrument strategy. As each bar is processed within a trade a line is added to a log file which details the PnL at each bar. I’m trying to build a file which replicates Striasman’s bar by bar analysis of the trades recommended in this book: http://www.amazon.co.uk/Tradings-Sys...4349297&sr=8-1 (see Chapter 9 – pp 143 – 165).
Given that I’ve looking at a multi-instrument system I need a method for tracking the Trades and Positions – and logging their relationships. I.e. if a trade is open but not closed it is only listed in the Positions connection and not in the Performance.AllTrades collection. What is the relationship between Trades and Positions and is there any other documentation on that data architecture?
Thanks and regards,
drolles
Comment