Hello guys, I am new to this forum. Sorry if I am posting this at the wrong section. I am very new to Python, and previously have been using R and Matlab for data analysis. Now I am trying to do a bit different task.
The task I want to do is to have a trading algo that does the following:
Say I have some trading signals that is going to help me rank the 30 stocks in my watchlist. On the first day I will hold the top 3 from the list.
For instance, the top 3 are AAPL, MSFT, AMZN. Next period I will get a new rank, and the top 3 could be replaced by other stocks. What I want to do here is to minimize changing positions. Therefore I don't want to change any of the 3 stocks that I am holding unless they fall out of the top 4 ranking. Using my last example that I have held AAPL, MSFT, and AMZN, say next period my top 4 stocks are AMZN, MSFT, EBAY, AAPL, then I do not change my portfolio. But if the new ranking is EBAY, NFLX, AAPL AMZN, then I want to change MSFT to EBAY, since it has fallen out of my top 4.
I hope I have explained my problem clearly. I would really appriciate any advice you guys can offer me. Thanks
The task I want to do is to have a trading algo that does the following:
Say I have some trading signals that is going to help me rank the 30 stocks in my watchlist. On the first day I will hold the top 3 from the list.
For instance, the top 3 are AAPL, MSFT, AMZN. Next period I will get a new rank, and the top 3 could be replaced by other stocks. What I want to do here is to minimize changing positions. Therefore I don't want to change any of the 3 stocks that I am holding unless they fall out of the top 4 ranking. Using my last example that I have held AAPL, MSFT, and AMZN, say next period my top 4 stocks are AMZN, MSFT, EBAY, AAPL, then I do not change my portfolio. But if the new ranking is EBAY, NFLX, AAPL AMZN, then I want to change MSFT to EBAY, since it has fallen out of my top 4.
I hope I have explained my problem clearly. I would really appriciate any advice you guys can offer me. Thanks