I found the answer in this great post. its not direct implementation but at least the logic is the same and by replacing RSI info with MACDHist you get to the same conclusion. How to implement RSI Divergence in Python
Answer from Sam.H on Stack OverflowI found the answer in this great post. its not direct implementation but at least the logic is the same and by replacing RSI info with MACDHist you get to the same conclusion. How to implement RSI Divergence in Python
In a similar case i have used backtrader. Its a feature-rich Python framework for backtesting and trading and you can also use it in order to generate lots of predefined indicators. In addition with this framework you are able to develop your own custom indicator as shown here. Its very easy to use and it supports lots of data formats like pandas data frames. Please take a look!
Thinking of automating a trading strat involving ADX, MACD and RSI, what do yall think of strat involving these indicators?
I created a divergence indicator (Python)
Coding price-RSI divergence?
Hidden Powers of Python (3) and final — backtrader
Videos
» pip install stockstats