Class: MyTradeWizard::OHLC

Inherits:
Object
  • Object
show all
Defined in:
lib/mytradewizard/ohlc.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ OHLC

Returns a new instance of OHLC.



3
4
5
# File 'lib/mytradewizard/ohlc.rb', line 3

def initialize(hash)
  @hash = hash
end

Instance Method Details

#closeObject



15
16
17
# File 'lib/mytradewizard/ohlc.rb', line 15

def close
  @hash['Close']
end

#highObject



9
10
11
# File 'lib/mytradewizard/ohlc.rb', line 9

def high
  @hash['High']
end

#lowObject



12
13
14
# File 'lib/mytradewizard/ohlc.rb', line 12

def low
  @hash['Low']
end

#openObject



6
7
8
# File 'lib/mytradewizard/ohlc.rb', line 6

def open
  @hash['Open']
end