Class: Quant::Indicators::MamaPoint

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

Instance Attribute Summary

Attributes inherited from IndicatorPoint

#indicator, #tick

Instance Method Summary collapse

Methods inherited from IndicatorPoint

#initialize, #initialize_data_points, #oc2

Methods included from Attributes

deregister, included, register, registry

Constructor Details

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

Instance Method Details

#crossed_down?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/quant/indicators/mama.rb', line 33

def crossed_down?
  @crossed == :down
end

#crossed_up?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/quant/indicators/mama.rb', line 29

def crossed_up?
  @crossed == :up
end