Hi, I don't know if what I did is valid, maybe someone can add to it.
- Used an online screener to look for stock symbols.
- Used a portfolio optimization -(i.e.,Markowitz model to find the efficient frontier, R code provided by Elliot Noma.
- Based on Eric Bell's suggestion about controlling risk, I used code provided [here][4], so leverage doesn't exceed 3x and strategy is more real world applicable.
- Algo will buy or sell based on golden cross rule (20 day MA and 200 day MA)
Note: I haven't been able to figure out how to fix 3 error messages, due to older version of the code. Any suggestions will be helpful.
Thanks
Avi