Questions tagged [ta-lib]

TA-Lib : Technical Analysis Library. It is widely used by trading software developers requiring to perform technical analysis of financial market data. Includes 200 indicators such as ADX, MACD, RSI, Stochastic, Bollinger Bands and Candlestick pattern recognition. It's an open-source API for C/C++, Java, Perl, Python, PHP and 100% Managed .NET.

286 questions
22
votes
4 answers

How to install TA-lib in google colab?

I'm trying to install TA-Lib package in google colab notebook but without success. I tried this guide and also Installing TA-Lib on python x64 I get this error: import platform print (platform.architecture()) import sys print(sys.version) !pip…
OriD
  • 225
  • 1
  • 2
  • 5
15
votes
5 answers

Trouble Installing TA-Lib in Python 3.7

I am trying to install TA-Lib for Python 3.7. I've already read through a number of solutions, but have come to a point I can't figure out. Here is the message I get from pip: Collecting ta-lib Using cached…
Todd Burus
  • 963
  • 1
  • 6
  • 20
15
votes
4 answers

How to use technical indicators of TA-Lib with pandas in python

I am new to python and pandas and mainly learning it to diversify my programming skills as well as of the advantage of python as a general programme language. In this programme I am using it to fetch historical data's from yahoo and do some…
Eka
  • 14,170
  • 38
  • 128
  • 212
12
votes
1 answer

How do I correctly calculate EMA for a stock using Ta-lib or Pandas?

Edit! For anyone wondering this same thing, I figured it out. There is nothing wrong with the implementations below. Its just the fact that EMA requires more than 21 data points to count a 20 data point exponential moving average. The reason for…
Noksuu
  • 121
  • 1
  • 1
  • 5
12
votes
13 answers

Python TA-Lib install problems

Frustratingly having a lot of difficult installing the TA-Lib package in python. https://pypi.python.org/pypi/TA-Lib I have read through all the forum posts I can find on this but no such luck for my particular problem.. Windows 10 Python…
Matthewj28
  • 297
  • 1
  • 7
  • 17
10
votes
6 answers

Python TA-lib install error, how solve it?

i install TA-lib with below command, pip install TA-lib but got this error "command 'gcc' failed with exit status 1": checked the Troubleshooting, installed the gcc, python-devel, libffi-devel, openssl-devel, but still not working! then use …
Fosen
  • 101
  • 1
  • 1
  • 3
10
votes
2 answers

How to create a composite strategy, using multiple instruments, in Pyalgotrade?

I'm using pyalgotrade for a trading strategy where I want to use multiple tickers in a list. The way it is set up now, it runs the strategy for each individual ticker in the list, but what I want it to do is to run them all as one, composite…
9
votes
1 answer

MACD Function Returning Incorrect Values

I am trying to use PHPs trader functions (available as a PECL extension) to calculate the moving average convergence/divergence (MACD) of various securities. However, the values returned do not seem to match my calculations. Consider the following…
Tim
  • 2,123
  • 4
  • 27
  • 44
6
votes
4 answers

Tensorflow 2.6.0 and TA-lib 0.4.21 numpy version collision

I'm trying to use both TA-lib version 0.4.21 and Tensorflow 2.6.0 in the same project. Both require different numpy versions: TF ~= 1.19.2 TA-lib >= 1.19.4 Given those dependencies, numpy 1.19.4 or 1.19.5 should work just fine, but I get the…
Crispy Holiday
  • 412
  • 1
  • 9
  • 28
6
votes
1 answer

Exponential Moving Average Pandas vs Ta-lib

I'm currently writng a code involving some financial calculation. More in particular some exponential moving average. To do the job I have tried Pandas and…
LucaG
  • 341
  • 3
  • 11
6
votes
2 answers

Error installing TA-Lib for Anaconda

I am running Python 3.4.1 Anaconda 2.1.0 on Win7 x64. Cython version is 0.21 and I can confirm it has been installed. I am trying to install the TA-lib wrapper via the command easy_install TA-lib. I already have the ta-lib folder in c:\ta-lib. This…
Sean U
  • 201
  • 2
  • 6
5
votes
3 answers

installation of talib in anaconda

I have a problem when trying to install ta-lib in the command prompt and got the following message in it. Any idea to solve the issue? (base) C:\Users\LEGION>conda install -c quantopian ta-lib Collecting package metadata (current_repodata.json):…
Black-Swan
  • 135
  • 1
  • 3
  • 9
5
votes
1 answer

How to run Ta-Lib on multiple columns of a Pandas dataframe?

I have a data frame with the price of several securities as columns and I can't find a solution to run TA-Lib in one shot because it needs numpy.ndarray. How can I run TA-Lib over multiple securities and get a data frame in return? import talib as…
Florent
  • 1,791
  • 22
  • 40
5
votes
6 answers

Installing Ta-lib creates gcc error

I am getting gcc error when trying to install Ta-lib as a global package on my mac. I get an error below: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda/include -arch…
Kimmo Hintikka
  • 13,472
  • 7
  • 34
  • 63
4
votes
4 answers

how to install Ta-lib with python 3.11 in Windows?

TA-Lib windows distribution from here https://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib, but only support to 3.10. How to install Ta-lib with python 3.11 in Windows? Instructions from the README for installing on Windows: Download…
zgpnuaa
  • 51
  • 1
  • 3
1
2 3
19 20