I misread your original post. I thought you wanted to optimize a portfolio.
Top secret eh! In that case, you can do something like yahoo finance -> historical data -> download to Excel -> Arrange Data in columns [Date, Stk1,Stk2..] -> calculate the returns [Date, Ret1, Ret2...] -> multiply the...