Hi,
I am Sourabh Jain. I have written several pinescript indicators as well as many python codes for stock analysis and automated trading on interactive broker, quantconnect etc. I can convert the pinescript into python code as you want it. I will use yfinance librarry as price source. If you are interested, let me know
Regards
Sourabh