TA-Lib / ta-lib-python

Python wrapper for TA-Lib (http://ta-lib.org/).
http://ta-lib.github.io/ta-lib-python
Other
9.78k stars 1.77k forks source link

problem with PVT indicator #622

Closed jupiterMJM closed 10 months ago

jupiterMJM commented 1 year ago

According to the readme, there should be a PVT indicator proposed in talib. However, i can't find it anywhere in this module....

mrjbq7 commented 1 year ago

I don't think we have PVT implemented, where does it say we do?

mrjbq7 commented 1 year ago

You can build it pretty easy, something like:

def PVT(c, v):
    return np.cumsum(v[1:] * np.diff(c) / c[:-1])