Technical analysis made for Ruby developers.

Toolkit for stocks, commodities, and other time series.

  
require 'ruby-technical-analysis'
series = [31.875, 32.125, 32.3125, 32.125, 31.875]
period = 5
bollinger_bands =
RubyTechnicalAnalysis::BollingerBands.new(
series: series,
period: period
)
p bollinger_bands.valid? # true
p bollinger_bands.call # [32.397, 32.062, 31.727]

Getting Started

Installation

Local install

From the command line run:

gem install ruby-technical-analysis

Rails project install

Add the gem to your Gemfile:

gem 'ruby-technical-analysis', '~> 1.0', '>= 1.0.3'

Then run:

bundle install
Next
Mean