GithubHelp home page GithubHelp logo

thisiscetin / indicado Goto Github PK

View Code? Open in Web Editor NEW
32.0 32.0 2.0 84 KB

Technical indicator library for Elixir with no dependencies.

License: Apache License 2.0

Elixir 100.00%
cryptocurrency elixir indicator phoenix technical-analysis

indicado's People

Contributors

thisiscetin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

churcho

indicado's Issues

API design: size of returned lists

Hi!

Thanks for putting up this library, it's very helpful for financial exploration and I would like to use it with Livebook and Nx and Explorer. It's also great to learn how technical analysis works.

One suggestion from my side is that the returned list to be the same size of the input list.

Currently this is the behaviour

iex> [1, 2, 3, 4, 5] |> Indicado.SMA.eval!(3)
iex> [2.0, 3.0, 4.0]

In my opinion, it would be great that the Indicado library returned a list with exactly the same size as the source list, so that you can relate back each data point to the source list by a simple Enum.zip() and would be very useful for using with a DataFrame library like Explorer.

iex(1)> source = [1, 2, 3, 4, 5]
[1, 2, 3, 4, 5]

iex> sma = source |> Indicado.SMA(3) 
[nil, nil, 2.0, 3.0, 4.0]

iex(2)> source |> Enum.zip(sma) 
[{1, nil}, {2, nil}, {3, 2.0}, {4, 3.0}, {5, 4.0}]

Any thoughts?

Thanks!

Germán

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.