TA-Lib Mex Functions and OSLion binaries

The TA-Lib Library is widely used by trading software developers.
ダウンロード: 517
更新 2012/1/23

ライセンスの表示

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.

引用

Davide Onofrio (2024). TA-Lib Mex Functions and OSLion binaries (https://www.mathworks.com/matlabcentral/fileexchange/34744-ta-lib-mex-functions-and-oslion-binaries), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2010b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersFinancial Toolbox についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0