Class: TechnicalAnalysis::MovingAverage::WMA

Inherits:
Struct
  • Object
show all
Defined in:
lib/calculation_helpers.rb,
lib/technical_analysis/moving_average.rb,
lib/technical_analysis/moving-average/weighted-ma.rb

Instance Attribute Summary collapse

Instance Attribute Details

#timeObject

Returns the value of attribute time

Returns:

  • (Object)

    the current value of time



23
24
25
# File 'lib/calculation_helpers.rb', line 23

def time
  @time
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



23
24
25
# File 'lib/calculation_helpers.rb', line 23

def value
  @value
end