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.

203 questions
16
votes
3 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
  • 165
  • 1
  • 5
13
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
  • 10,884
  • 31
  • 98
  • 166
10
votes
11 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
  • 237
  • 1
  • 6
  • 15
9
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…
8
votes
4 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
  • 823
  • 1
  • 5
  • 17
7
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
  • 71
  • 1
  • 4
7
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,002
  • 4
  • 23
  • 37
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
  • 171
  • 2
  • 7
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
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
  • 51
  • 1
  • 1
  • 2
4
votes
1 answer

Value error on multiindex pandas dataframe

I am using the package from here. What I am trying to do is to calculate the Stochastic value for each ticker. I have the following code: import lxml from urllib.request import urlopen from bs4 import BeautifulSoup import pandas as pd from pandas…
Slartibartfast
  • 476
  • 5
  • 28
4
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,086
  • 11
  • 26
4
votes
1 answer

.NET: Can't get correct RSI and MACD values from TA-Lib

I'm trying to use TA-Lib for technical analysis. I downloaded TA-Lib-Core Nuget package for .NET. Unfortunately, I can't find any API documentation so some method parameters are a bit of mystery. I downloaded historical data for AMD between…
Mark13426
  • 2,429
  • 4
  • 35
  • 72
3
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
  • 55
  • 1
  • 7
3
votes
0 answers

Talib library non-stochastic function returns inconsistent values

I'm using the MACD function from the talib library. http://www.tadoc.org/indicator/MACD.htm The function's output is based on moving average of the input values. Let's create function inputs: close = np.array([ 2930.8, 2926.3, 2941.5, 2942.9, …
Saeed
  • 1,404
  • 1
  • 13
  • 21
1
2 3
13 14