Building a Technical Indicator in Python

I would always say leverage a library like TA-LIB for a Technical Indicator as there are over 300 of them. Same with MoriveWave if you really had to. I even teach people how to use TA-LIB when then they want to build their trading bot

Protect your peofit by watching this https://quantlabs.net/banking/

https://blog.quantinsti.com/build-technical-indicators-in-python/