I’ve automated the process using two Python scripts—one for fetching data and the other for ranking stocks. I tested it on the smallcap momentum portfolio, and it produced the same list of stocks as shared today, except for HSCL.
Challenges encountered:
- The Jugaad Data library doesn’t automatically account for stock splits, so the base file needs to be updated manually.
- NSE data is missing for some date ranges. For example, HSCL’s data from January 9, 2024, to February 28, 2024, is unavailable on the NSE website. As a result, the library couldn’t download the data, and HSCL didn’t appear in the top 20 list. There could be similar cases.
Subscribe To Our Free Newsletter |