Ta-libæ¯ä¸ä¸ªå¤å¹³å°å¸åºåæå·¥å ·ï¼å®å¨éå交æä¸ä½¿ç¨é常广æ³ï¼ä¸»è¦æä¸é¢ä¸å¤§ç¹æ§ï¼
å å«äº200个ææ¯ææ ï¼ä¾å¦ADXãMACDãRSIçç è¡çå¾è¯å«ï¼Candlestick pattern recognitionï¼ å è´¹å¼æºï¼å¤ä¸ªè¯è¨çapié½æï¼å æ¬C/C++, Javaï¼Perlï¼Pythonçç æè¿åè¶å¿è¿½è¸ªï¼ç¨å°äº Ta-lib è¿ä¸ªæ¡æ¶æ¥è®¡ç®ææ ï¼é常æ¹ä¾¿ã
ä¸è¿ï¼å¨Linuxä¸å®è£ æ¶ï¼ç´æ¥ä½¿ç¨
pip install
ä¸è½æåï¼äºæ¯Googleæ¾å°ç®åçæ¹æ³ï¼è®°å½ä¸ä¸ã1ãæ们å ä¸è½½ta-libæºä»£ç ï¼è¿è¡ç¼è¯
$ wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz #ä¸è½½ $ tar -xvf ta-lib-0.4.0-src.tar.gz # 解å $ cd ta-lib # è¿å ¥ç®å½ $ ./configure --prefix=/usr $ make $ make install
2ãå°ç¼è¯å¥½çæ件å¤å¶å°èæç®å½ä¸
è¿éï¼æçèæç¯å¢ç®å½æ¯
~/py3
$ cp /usr/lib/libta_lib* ~/py3/lib
3ãè¥æ¯python3ï¼åéè¦å®è£ python3-dev
$ apt-get install python3-dev
4ãå®è£ pythonçæ¬çta-lib
å å°githubä¸è½½pythonçæ¬çta-libï¼ç¶å使ç¨
python setup.py install
å®è£$ apt-get update && apt-get install git #è¿ééè¦æ´æ° $ git clone https://github.com/mrjbq7/ta-lib.git $ cd ta-lib $ python setup.py install
Macå®è£ å¾ç®åï¼åªéè¦ä¸é¢ä¸ä¸ªå½ä»¤ï¼