TA-Lib Mex Functions and OSLion binaries

The TA-Lib Library is widely used by trading software developers.

Al momento, stai seguendo questo contributo

The TA-Lib Library is widely used by trading software developers requiring to perform technical analysis of financial market data.

If you want to use it within the Matlab environment you will easily find the mex-files (needed to execute commands from the Matlab command line) for Windows PCs.

But I wasn’t able to find, instead the mex files for OS X (Lion) (with extension .mexmaci64), so I ended up to write the required c code.

Here you can download:

The mex files to use TALIB in Matlab(R2010b) with OSLion:

It requires the TA-Lib 0.4.0 installed in order to be called by the mex files:
download the archive: ta-lib-0.4.0-src.tar.gz.
Expand it in a new folder then run a terminal window and navigate to it.
Run the following commands:

./configure
make
make install

Now you should have the library freshly compiled, installed and ready to use.
Expand the mex files you downloaded from here and be sure that
Matlab can see them....

You are now ready to call the TA-Lib functions from Matlab in your OS-Lion.


The C files required to generate mex files with all other versions of OS and Matlab:

To compile the code you first need the TA-Lib installed (follow the instructions above).
Then run the command (one for each function, or use the file):

mex TA_ADX.c -I"../TA_COMMON/" -I"../../include/" -L"../.libs/" -l"ta_lib"

Where you have checked your paths which can be different from mine.

The Matlab prototypes of the TA-Lib Functions:


You are free to use, modify, distribute the code but I invite you to send me suggestions, modifications, improvements.

Cita come

Davide Onofrio (2026). TA-Lib Mex Functions and OSLion binaries (https://it.mathworks.com/matlabcentral/fileexchange/34744-ta-lib-mex-functions-and-oslion-binaries), MATLAB Central File Exchange. Recuperato .

Categorie

Scopri di più su Financial Toolbox in Help Center e MATLAB Answers

Informazioni generali

Compatibilità della release di MATLAB

  • Compatibile con qualsiasi release

Compatibilità della piattaforma

  • Windows
  • macOS
  • Linux
Versione Pubblicato Note della release Action
1.0.0.0