TA-Lib / ta-lib-python

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

Calculating Z-score? #530

Closed Synthacon closed 2 years ago

Synthacon commented 2 years ago

Is it possible to calculate z-score using Ta-lib functions/ indicators?

It's very easy to do using Pine script build in functions: src = close, len = input(2000, minval=1, title="Length") aver= sma(src, len) stdev = stdev(src, len) a= (src-aver) out =(a/stdev)

Is it possible to do same with Ta-lib?

mrjbq7 commented 2 years ago

SMA and STDDEV are available in TA-Lib...