twopirllc / pandas-ta

Technical Analysis Indicators - Pandas TA is an easy to use Python 3 Pandas Extension with 150+ Indicators
https://twopirllc.github.io/pandas-ta/
MIT License
5.39k stars 1.05k forks source link

MACD Wilders #598

Open benjune opened 2 years ago

benjune commented 2 years ago

Howdy. I notice you have a MACD indicator here... is there instructions somewhere to manipulate this to become Wilders? I think by default this is simple or exponential. I was wondering if there was a Wilders one that could be used. Or if we can manipulate the macd.py to become Wilders. Thanks!

twopirllc commented 2 years ago

Hi @benjune

is there instructions somewhere to manipulate this to become Wilders?

If you want to manipulate macd for your purposes, you would need to fork and edit a copy of this repository. If unsure where to begin to modify a GitHub repo, there are numerous tutorials online and videos online to get you started.

I think by default this is simple or exponential.

It's default is exponential per the source code.

I was wondering if there was a Wilders one that could be used. Or if we can manipulate the macd.py to become Wilders.

It is possible to include Wilders and other moving averages as an option, but when is indeterminable at this time. The default will always be ema since that is what TA Lib uses. However like I mentioned above, you can modify the repository to fit your needs.

Kind Regards KJ