Class: Quant::Indicators::MaPoint

Inherits:
IndicatorPoint show all
Defined in:
lib/quant/indicators/ma.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from IndicatorPoint

#initialize

Methods included from Attributes

deregister, included, register, registry

Constructor Details

This class inherits a constructor from Quant::Indicators::IndicatorPoint

Instance Attribute Details

#emaObject

Returns the value of attribute ema.



6
7
8
# File 'lib/quant/indicators/ma.rb', line 6

def ema
  @ema
end

#oscObject

Returns the value of attribute osc.



6
7
8
# File 'lib/quant/indicators/ma.rb', line 6

def osc
  @osc
end

#ssObject

Returns the value of attribute ss.



6
7
8
# File 'lib/quant/indicators/ma.rb', line 6

def ss
  @ss
end

Instance Method Details

#initialize_data_pointsObject



8
9
10
11
12
# File 'lib/quant/indicators/ma.rb', line 8

def initialize_data_points
  @ss = input
  @ema = input
  @osc = nil
end