Giter Site home page Giter Site logo

Comments (4)

berlinguyinca avatar berlinguyinca commented on August 14, 2024

from technical.

hroff-1902 avatar hroff-1902 commented on August 14, 2024

measured pyti's simple_moving_average

        from pyti.simple_moving_average import simple_moving_average
        ....
        l = lambda: simple_moving_average(dataframe['close'], 20)

With repeat(repeat=10, number=10) it took 2.5 seconds, so it's 2.5 sec * (10000 * 10) / (10 * 10) / ~ 1 sec =~ 2500 times (!!! 🙄 ) slower than ta-lib and, correspondingly, 300-500 times slower than native pandas.

from technical.

berlinguyinca avatar berlinguyinca commented on August 14, 2024

from technical.

hroff-1902 avatar hroff-1902 commented on August 14, 2024

found comparison of performance of different methods for calculation of SMA (rolling mean): https://stackoverflow.com/a/13732668

according to that (from 2012, though), ta-lib is only 5 times faster than native pandas, for example.

not an issue completely if the data are still applicable to current versions: freqtrade internals logic (and backtesting/hyperopt) takes more time than calculation of indicators...

from technical.

Related Issues (20)

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.