Giter Site home page Giter Site logo

razorback16 / ta-lib-rt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trufanov-nok/ta-lib-rt

0.0 1.0 0.0 44.33 MB

TA-Lib RT is a fork of TA-Lib that provides additional API for incremental calculation of indicators without reprocessing whole data.

Home Page: http://ta-lib.org

CMake 0.08% Makefile 26.32% Shell 0.01% M4 0.01% QMake 0.36% C 47.78% Perl 0.71% Perl 6 0.05% C++ 4.57% Java 19.93% Batchfile 0.01% Python 0.06% HTML 0.14%

ta-lib-rt's Introduction

TA-Lib RT

TA-Lib RT (Real Time) is a fork of TA-Lib that provides additional API for incremental calculation of indicators without reprocessing whole data. Binary compatibility with original code is possible but isn't provided in this release.

In a nutshell each indicator function ( for example: int TA_[MYINDICATOR](indexArguments, dataArguments, optArguments, outArguments); ) got 5 more additional functions. 3 main functions:

  • int TA_[MYINDICATOR]_StateInit(void** _state, optArguments); - allocates indicator-dependant object that contains a state of its last calculation.
  • int TA_[MYINDICATOR]_State(void* _state, dataArguments, outArguments); - calculates indicator based on state given. Note: dataArguments here aren't arrays but signle values. This function should be called in a loop for all data values.
  • int TA_[MYINDICATOR]_StateFree( void** _state ); - destroys state object and frees its previously allocated memory.

And 2 helper functions:

  • int TA_[MYINDICATOR]_StateSave( void* _state, FILE* _file ); - serialize state object to file.
  • int TA_[MYINDICATOR]_StateLoad( void** _state, FILE* _file ); - read state object from file.

There is also support of dynamic indicator functions resolution via TA_FuncInfo with help of TA_GetInitNewStateFuncPtr(), TA_GetCallFuncStateFuncPtr(), TA_GetFreeStateFuncPtr(), TA_GetSaveStateFuncPtr() and TA_GetLoadStateFuncPtr().

Please refer to wiki and examples for details.

Current version is alpha and only C++ API is tested

ta-lib-rt's People

Contributors

trufanov-nok avatar razorback16 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.