Fisher Transform does not produce correct results
See original GitHub issueWhich version are you running? The lastest version is on Github. Pip is for major releases.
import pandas_ta as ta
print(ta.version)
0.3.14b0
Do you have TA Lib also installed in your environment?
$ pip list
TA-Lib 0.4.22
Did you upgrade? Did the upgrade resolve the issue?
$ pip install -U git+https://github.com/twopirllc/pandas-ta
Upgrade did not resolve.
Describe the bug Fisher Transform does not produce correct results for cryptos which have multiple zeros after the decimal point. Some of these are:
['HOTUSDT','SHIBUSDT','XECUSDT','IOTXUSDT','JSTUSDT','WINUSDT','TROYUSDT','SUNUSDT','FUNUSDT','DENTUSDT','AKROUSDT','SPELLUSDT','SCUSDT','MFTUSDT','SKLUSDT','STPTUSDT','CKBUSDT']
To Reproduce
import pandas as pd
import pandas_ta as ta
import yfinance as yf
data = yf.download(tickers='SHIB-USD', start="2022-01-01", end="2022-03-30")
data.tail(5)
data.ta.fisher(append=True)
data.tail(5)
Expected behavior For some cryptocoins listed in Binance, pandas-ta Fisher transform indicator does not produce correct results. The common characteristic of these coins are that they have little multiple zeros after decimal point of their prices. For example, the close price of SHIBUST as of now is : 0.00002548
Thanks.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
@balioglum,
Thank you! That’s much more useful.
Sounds like a potential rounding issue.
Have you tried scaling the price, apply ta, and descale like:
Unfortunately I do not have a time frame to address this, but I’ll take another look at it when I get to converting it to numpy/numba. If you have a solution and would like to contribute, that would be great! 😎
Kind Regards, KJ
Hi @balioglum,
Excellent!
True. Also you can consolidate the code a bit:
You’re welcome! 😎