To get started developing on talib, clone the latest code from git andinstall:$ git clone git://github.com/mrjbq7/ta-lib.git$ cd ta-lib# you can run "git pull" here (no quotes) to update the sources in the future$ make build$ [sudo] make installHere's the full list of make commands (see the Makefile file):make build # builds and places libs in the project directory; required for testingmake clean # cleans the local build filesmake install # installs talib system-widemake generate: # generates a fresh _func.pxi, _stream.pxi file. Requires talib and TA-Lib to both be installedmake perf # run performance profilingmake test # run testsThe source code is comprised of one python package, located in the talibdirectory, which itself has one Cython module (_ta_lib) which consists offour parts: _common, _func, _abstract and _stream.talib/_common.pxiAn internal-use file for functionality shared between func and abstract.talib/_func.pxiThis file is generated automatically by tools/generate_func.py and any changes madeto it directly will get overwritten!talib/_abstract.pxiThis file contains the code for interfacing with the TA-Lib abstract interfaceand wrapping it into a pythonic Function class.talib/_ta_lib.pyxThis "Cython header file" defines the C-level functions, variables and types weneed to use in the above pyx files.talib/_stream.pxiThis file contains code for interfacing a "streaming" interface to TA-Lib.tools/generate_func.py,generate_stream.pyScripts that generate and print _func.pxi or _stream.pxi to stdout. Gets informationabout all functions from the C headers of the installed TA-Lib.If you are interested in developing new indicator functions or whatnot onthe underlying TA-Lib, you must install TA-Lib from svn. Here's how (Linuxtested):```$ cd ~/dev$ svn checkout svn://svn.code.sf.net/p/ta-lib/code/trunk@1545 ta-lib-code# later revisions break building ta_regtest (but claim to add support for VS2012)$ cd ta-lib-code/ta-lib/c/make/gen_make$ perl ./gen_make.pl$ # cd ta-lib-code/ta-lib/c/make/cmr && make --> compile the code (no install)$ cd ~/dev/ta-lib-code/tools# Depending upon your platform you may need to make minor changes to this script:$ perl ./release_unix.pl -version 0.4.X -source ../ta-lib/c$ cd ~/ta-lib-0.4.X-work/dist# the installable source package will be here, and if you wanted, the deb/rpm# packages then see http://ta-lib.org/d_misc/how-to_function.html and the# README/comments in the src```
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。