Questions tagged [pandas-ta]

questions related to pandas technical analysis (pandas-ta) library.

Pandas Technical Analysis (Pandas TA) is an easy to use library that leverages the Pandas package with more than 130 Indicators and Utility functions and more than 60 TA Lib Candlestick Patterns. Many commonly used indicators are included, such as:

  • Candle Pattern(cdl_pattern)
  • Simple Moving Average (sma)
  • Moving Average Convergence Divergence (macd)
  • Hull Exponential Moving Average (hma)
  • Bollinger Bands (bbands)
  • On-Balance Volume (obv)
  • Aroon & Aroon Oscillator (aroon)
  • Squeeze (squeeze) and many more.

More info here

38 questions
0
votes
1 answer

How can add ichimoku with the pandas_ta library in Python?

https://github.com/twopirllc/pandas-ta#overlap-33 import pandas_ta as ta import pandas as pd ichimoku = ta.ichimoku(df['high'], df['low'], df['close']) df = pd.concat([df, ichimoku], axis=1) TypeError: cannot concatenate object of type '
user1887192
  • 3
  • 2
  • 6
0
votes
1 answer

pandas-ta with multiindex dataframe

I am wanting to use pandas-ta. Although most aspects of this library seem easier for technical analysis I can only make it function on single ticker dataframes. I would like to figure out how to get pandas-ta to work over multiple tickers in a…
DMac_codes
  • 17
  • 5
0
votes
1 answer

Stochastic Oscillator not working on self-made DataFrame

I made a new pandas DataFrame by adding the last 15 items, minus the last item, from the binance historical. And every minute I add the new data to the newly made DataFrame. This works great and gives the following output after a few minutes: …
Jellyfish
  • 67
  • 9
0
votes
1 answer

Problems with pandas_ta and stochastic rsi

When I run this code, it gives me an error: ValueError: Wrong number of items passed 2, placement implies 1 Am i missing something ? I looked at questions related to mine but it doesn't help me. import pandas as pd import pandas_ta as ta import…
Louis
  • 41
  • 1
  • 6
0
votes
0 answers

Calculate supertrend for more than 100 stocks python

I am using pandas_ta to calculate supertrend its fine for one stock but when I am trying to calculate it for like 100 stocks using a simple for loop, it takes more than 6 secs, how can I optimize it? or is there any different way to achieve it? for…
Asif Khan
  • 159
  • 1
  • 1
  • 13
0
votes
1 answer

Calculating RSI from a pandas dataframe

I have a pandas dataframe where each column of the dataframe corresponds to the closing price of a given stock (IBOVESPA-BRASIL). I want to calculate the RSI for each dataframe stock (df0) and create a new dataframe with this data (df1). I am trying…
0
votes
1 answer

Calculating an indicator value for a particular date using the pandas_ta package

The below code calculates the values for an indicator ( for example, say SMA) for all the values of the close price in a dataframe: import pandas_ta as pta df['SMA']= pta.sma(close=df['Close_NAVI.O'], length=10) My query is that, is there a way to…
Prateek Daniels
  • 451
  • 1
  • 4
  • 19
-3
votes
1 answer

pandas_ta working with windows and not with mac

I have anaconda installed on my windows machine and my mac, when I tried running a code of pandas-ta all strategy on windows its giving me the answer but the same notebook when I run it on mac its giving me an error. AttributeError: 'Series' object…
1 2
3