Giter VIP home page Giter VIP logo

Comments (7)

mourednik avatar mourednik commented on May 12, 2024

I'm working on this now. I will also create a StandardDeviation indicator to be used by the BollingerBand indicator.

from lean.

mchandschuh avatar mchandschuh commented on May 12, 2024

Wonderful! You'll be the first indicator contributor.

I couldn't agree more that making a StandardDeviation indicator is the way to go, and then using that in the BollingerBand indicator. Let me know if you have any questions about the design of the indicator system or anything else in Lean! Thanks!!

from lean.

mourednik avatar mourednik commented on May 12, 2024

Thanks. So far, everything looks very sensible. I'll let you know if there's anything questionable.

from lean.

mourednik avatar mourednik commented on May 12, 2024

@jaredbroad @mchandschuh
There is a problem with the test data.

spy_bollinger_bands.txt is missing the initial 50 rows, assuming that the moving average is a 50 period SMA. We need those 50 rows to initialize the SMA so that it matches the CSV. Are you able to easily generate a new CSV from somewhere?

Also, I added the en-US date format so that it can parse the CSV dates. That fixed two other failing tests.

from lean.

mchandschuh avatar mchandschuh commented on May 12, 2024

b78398c updates the bollinger band data to be correct. The Bollinger Band (20, 2) uses a 20 period moving average and +- 2 standard deviations (also computed from 20 periods) from the mean for the upper and lower bands respectively. This data is generated using the FreeStockCharts.com desktop silverlight application's 'Export Chart' feature.

Thanks for fixing those tests! They were passing in Travis but, I suppose we need to be more aware of globalization concerns.

from lean.

mourednik avatar mourednik commented on May 12, 2024

Thanks. Pull request submitted.

from lean.

jaredbroad avatar jaredbroad commented on May 12, 2024

Closed by commit #1d912765, +5 kudos to @mourednik

from lean.

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.