Class: Quant::Indicators::MesaPoint

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

Overview

The MESA inidicator

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)


20
21
22
# File 'lib/quant/indicators/mesa.rb', line 20

def crossed_down?
  @crossed == :down
end

#crossed_up?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/quant/indicators/mesa.rb', line 16

def crossed_up?
  @crossed == :up
end