I have written my own backtesting engine and am currently working on a feature where a portion of a lower ranked strategy's position can be liquidated in favor of a higher ranked strategy position. In my reporting, let's say I have trade:
ticker qty entry date entry price exit date exit price
xyz 100 2/3/2015 105 open
What would make the most sense to see if I liquidated half of the position now and the other half later.
One option, create an additional trade entry with half the quantity and update the original:
ticker qty entry date entry price exit date exit price
xyz 50 2/3/2015 105 6/15/2015 110
xyz 50 2/3/2015 105 open
Is there another (more standard) way in commercial backtesting software this would be represented?
thanks
fan27
ticker qty entry date entry price exit date exit price
xyz 100 2/3/2015 105 open
What would make the most sense to see if I liquidated half of the position now and the other half later.
One option, create an additional trade entry with half the quantity and update the original:
ticker qty entry date entry price exit date exit price
xyz 50 2/3/2015 105 6/15/2015 110
xyz 50 2/3/2015 105 open
Is there another (more standard) way in commercial backtesting software this would be represented?
thanks
fan27