TA-Lib / ta-lib-python

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

problem with PVT indicator #622

Closed jupiterMJM closed 5 months ago

jupiterMJM commented 7 months 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 7 months ago

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

mrjbq7 commented 7 months ago

You can build it pretty easy, something like:

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