Class: Coinbot::OrderBook::IndicatorHistory
- Inherits:
-
Object
- Object
- Coinbot::OrderBook::IndicatorHistory
- Defined in:
- lib/coinbot/order_book/indicator_history.rb
Overview
Keep Indicator History
Instance Attribute Summary collapse
-
#macd ⇒ Object
Returns the value of attribute macd.
-
#rsi ⇒ Object
Returns the value of attribute rsi.
Instance Method Summary collapse
-
#initialize ⇒ IndicatorHistory
constructor
A new instance of IndicatorHistory.
Constructor Details
#initialize ⇒ IndicatorHistory
Returns a new instance of IndicatorHistory.
13 14 15 16 |
# File 'lib/coinbot/order_book/indicator_history.rb', line 13 def initialize self.macd = [] self.rsi = [] end |
Instance Attribute Details
#macd ⇒ Object
Returns the value of attribute macd.
10 11 12 |
# File 'lib/coinbot/order_book/indicator_history.rb', line 10 def macd @macd end |
#rsi ⇒ Object
Returns the value of attribute rsi.
10 11 12 |
# File 'lib/coinbot/order_book/indicator_history.rb', line 10 def rsi @rsi end |