Code Monkey home page Code Monkey logo

bollingerbands's Introduction

BollingerBands

bollinger bands ruby gem

Exhibit A.

s = Stock.new "goog"
1.9.3 (main)> s.get_historical_quotes(1)
  => [
    [0] [
      [0] "2013-11-25",
      [1] "1037.16",
      [2] "1053.19",
      [3] "1035.02",
      [4] "1045.93",
      [5] "1613000",
      [6] "1045.93"
    ]
  ]
  
1.9.3 (main)> s.bollinger_bands
  => [
    [ 0] {
            :sma => 1026,
          :lower => 1007.2383369607063,
          :upper => 1044.7616630392938,
      :bandwidth => 0.036572442571722714,
      :percent_b => 1.0063517013445724
    },
    [ 1] {
            :sma => 1024,
          :lower => 1006.6794919243113,
          :upper => 1041.3205080756888,
      :bandwidth => 0.03382911733532967,
      :percent_b => 0.7020725942163671
    },
    ...

###$

bollingerbands's People

Contributors

aaronlifton avatar aaronlifton3 avatar

Watchers

 avatar  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.