ta
ta copied to clipboard
Technical Analysis Library using Pandas and Numpy
I'm initializing a dataframe with zeros to then progressively adding data to it. While calling ema_indicator() at each iteration ``` zeros = np.zeros(1000) df = pd.DataFrame(zeros) ema_indicator(df, 1000) ``` This...
Lagging span line will be useful if added to library. thanks Lagging span is described here: https://www.investopedia.com/terms/c/chikouspan.asp#:~:text=The%20Chikou%20span%20is%20a,closing%20price%20of%20an%20asset.&text=Many%20traders%20watch%20for%20the,signal%20a%20potential%20trend%20change.
You already have ATR calculator in this library. How hard would it be to use this to calculate the Supertrend indicator?
```sh trend.py:170: RuntimeWarning: invalid value encountered in double_scalars dip[i] = 100 * (dip_mio[i]/trs[i]) trend.py:174: RuntimeWarning: invalid value encountered in double_scalars din[i] = 100 * (din_mio[i]/trs[i]) ```
Hello, I have noticed that there is an issue with the K% smooth window after comparing it with the trading view 14 3 3 settings. The argument is set as...
The code below returns dataframe filled with 0, not `NaN`. ``` df["atr"] = ta.volatility.AverageTrueRange( df["High"], df["Low"], df["Close"], window = 14, fillna = False ).average_true_range() ```
The kama indicator works halfway through my data set then suddenly stops giving only NaNs afterwords. I am using it as: ``` ta_kama = KAMAIndicator(close=df['close']) df['kama'] = ta_kama.kama() ``` The...
I notice the ADX indicator is very slow (~1s to calculate for a df with ~200k rows), and I'm noticing the implementation uses several for loops. I'm not exactly sure...
In my experience of stock trading and cryptocurrency trading, KDJ is the best short-swing trading indicator. Could you please support KDJ indicator?