Class: Coinbot::OrderBook::IndicatorHistory

Inherits:
Object
  • Object
show all
Defined in:
lib/coinbot/order_book/indicator_history.rb

Overview

Keep Indicator History

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeIndicatorHistory

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

#macdObject

Returns the value of attribute macd.



10
11
12
# File 'lib/coinbot/order_book/indicator_history.rb', line 10

def macd
  @macd
end

#rsiObject

Returns the value of attribute rsi.



10
11
12
# File 'lib/coinbot/order_book/indicator_history.rb', line 10

def rsi
  @rsi
end