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
3
votes
1 answer

C++ & ta_lib - cannot work out how to use TA_MACD function

This is my first c++ program and I'm not very familar with c either so please be gentle with me! I'm trying to call the TA_MACD function from the ta_lib library and having no success. Could someone help me out please. My code is this: #include…
Andrew
  • 626
  • 6
  • 16
3
votes
3 answers

nodejs talib MACD

I am using talib technical analysis library to calculate MACD. I used AAPL data to calculate MACD(8, 17, 9) but the talib values are completely different from Google and Yahoo finance.Here is my javascript (I copied last AAPL close data since…
Stefano Piovesan
  • 1,185
  • 3
  • 19
  • 37
3
votes
1 answer

PHP Trader Function: trader_sma, when it asks for time period, what type of period is it asking? Days, Seconds, etc?

PHP Trader Function: trader_sma, when it asks for time period, what type of period is it asking ? Days, Seconds, etc? Regarding: array trader_sma ( array $real [, integer $timePeriod ] ) Any insight regarding this function would be very…
Sven Kahn
  • 487
  • 1
  • 3
  • 16
2
votes
1 answer

Applying TA-Lib KAMA to DataFrame with groupby

I have a dataframe with stock data sorted by name and date. I'm trying to apply the KAMA (Kaufman Adaptive Moving Average) function to each stock. The function works with the df when I apply it to a new column but not with groupby. Below is some…
Flint
  • 39
  • 4
2
votes
1 answer

Install talib on docker

FROM python:3 USER root RUN apt-get update RUN apt-get -y install locales && \ localedef -f UTF-8 -i ja_JP ja_JP.UTF-8 RUN wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz && \ tar -xvzf ta-lib-0.4.0-src.tar.gz && \ …
K H
  • 31
  • 2
2
votes
1 answer

Why does "Building wheel for TA-Lib (setup.py)" take a long time?

I tried installing TA-Lib on an Ubuntu virtual machine. Everything was done according to the documentation (https://mrjbq7.github.io/ta-lib/install.html). The installation stops on Building wheel for TA-Lib (setup.py) after running pip3 install…
2
votes
0 answers

ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

I am trying to install TA-LIB (library) in python to analyze financial data. I was able to download talib by following the talib installation instructions below, but when I run the following executable program, I get the following error and have not…
Chara
  • 21
  • 3
2
votes
3 answers

Install TA-lib issue

I know there are lots of issues about installing ta-lib. I tried some but not working. Example i tried : https://www.youtube.com/watch?v=hZIZMMcTQ8c&ab_channel=MartinMayer https://pypi.org/project/TA-Lib/ For the first, i have this environment…
Skykron
  • 21
  • 1
  • 1
  • 6
2
votes
2 answers

Result is different than Binance technical analysis result

I am doing technical analysis using talib in Go. But the result looks different compared to the Binance live result. Technical Analysis: RSI, Stoch RSI, Boler band, and MACD. All are showing the wrong results only. Binance Dashboard URL:…
2
votes
0 answers

Python Ta-lib correct order

I refer to TA-Lib In which order do I have to pass Data inside TA-Lib? The most recent data first or the most recent data last? I can't find any information, in most cases the order is not important but in some it is. For example the momentum…
2
votes
1 answer

I am getting 'Failed to execute script main' when I double-click on the exe file in windows10

I know such question has been previously asked but I have a different problem, here when I try to double-click on my exe which I created using pyinstaller I am getting Failed to execute main script. I am using python 3.9 I tried to open it by…
2
votes
1 answer

TA-lib python, How use MAVP - Moving average with variable period

real = MAVP(close, periods, minperiod=2, maxperiod=30, matype=0) i am trying to use this method but it raises an error because the periods parameters, How to use this method for Dataframe like this
2
votes
2 answers

stdev() differences between talib and pine script versions

I'm trying to port a strategy from tradingview (pinescript) to a framework I built in nodejs. My strategy uses breakouts on the Bollinger bands. in my pine script I've implemented the BBs with standard deviation ( basically copying the build-in…
holographix
  • 2,497
  • 2
  • 32
  • 46
2
votes
2 answers

Is there a way I can retrieve all indicators at once in python talib and btalib?

There are a lot of indicators you can calculate with the functions built in the talib and btalib libraries. It would be a hassle to gather all information indicator by indicator. Is there a way to do this at once? If so, how should I proceed doing…
Herwini
  • 371
  • 1
  • 19
2
votes
0 answers

Can’t import TA-Lib on Mac (Python)

I’m using Python 3.7 on MacOs 10.12.6. I’ve been trying to install talib in every way possible and I still get “no module named talib” when I try to import it in Python. I’m on Google page 10 looking for solutions, tried with brew, pip3, downloading…
Rbdm
  • 39
  • 4
1 2
3
19 20