Sha256: dfbda8d83c12209504ce080e7f5de69393c28970adfb33a0ee5517bbfa7ae3dc

Contents?: true

Size: 1.26 KB

Versions: 1

Compression:

Stored size: 1.26 KB

Contents

== Signal Tools

Signal tools allows you to create technical analysis data for a given stock (like MACD, stochastic, and exponential moving averages).

== Installation

gem install signal_tools
bundle install --without development test

== Usage

require 'signal_tools'

stock = SignalTools::Stock.new('GOOG', '2010-01-01', '2010-05-31')
# Leave the last parameter blank to get from a previous date up until today:
stock = SignalTools::Stock.new('GOOG', '2010-01-01')
# Leave both dates blank to get the past 90 days:
stock = SignalTools::Stock.new('GOOG')

# Generate MACD signal with an 8 day short period, 17 day long period, and 9 day EMA signal period:
stock.macd(8, 17, 9)

# Generate slow stochastic signal with a 14 day K period and a 5 day D period:
stock.slow_stochastic(14, 5)

== Note on Patches/Pull Requests

* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
  future version unintentionally.
* Commit, do not mess with rakefile, version, or history.
  (if you want to have your own version, that is fine but
   bump version in a commit by itself I can ignore when I pull)
* Send me a pull request. Bonus points for topic branches.

== Copyright

Copyright (c) 2010 Matt White. See LICENSE for details.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
signal_tools-0.2.0 README.rdoc