Hi,
I have been recently be working on this algo for a college seminar. I currently pick 25 stocks for my long positions and 25 for my short positions with equal weights; How can I make this weights more variable?
Let's say one of my indicators in my market_close_trades function gives me a huge positive signal to go long. How can I modify my code so that the algo invests more in that opportunity?
Thanks so much in advance,
Mattia