Class: SQA::Strategy::RSI
- Inherits:
-
Object
- Object
- SQA::Strategy::RSI
- Extended by:
- Common
- Defined in:
- lib/sqa/strategy/rsi.rb
Class Method Summary collapse
Methods included from Common
Class Method Details
.trade(vector) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/sqa/strategy/rsi.rb', line 8 def self.trade(vector) rsi_trend = vector.rsi[:trend] if :over_bought == rsi_trend :sell elsif :over_sold == rsi_trend :buy else :hold end end |