Hi All,
Trying to use excel to backtest momentum stock strategies in excel. I have all of the raw data and need some help putting the formulas together. I am probably making it sound more difficult than it is, but here is the objective:
"Purchase" the stock with the highest trailing returns. To mimic this purchase, we must first identify the highest value in I8:P8. Then, we must reflect only the % change in value for the stock with the highest relative strength. To do so, we need to calculate the change from row 8 to row 9 and so on. The percent gain/loss will be multiplied by a hypothetical starting value of a portfolio that invests in the strategy (cell not shown on the sample sheet, but it would be a single cell with a starting value of 1, for example).
For example, in the attached spreadsheet the highest value in I8:P8 is K8. Therefore, I want to only purchase Stock C using the value in C8 as the entry price and hold until the price in C9. The % gain/loss between c8/c9 would be multiplied by the starting value of the portfolio (not shown on the sheet). Then, repeat this calculation for each subsequent row.
Bookmarks