Class: Quant::Indicators::AtrPoint
- Inherits:
-
IndicatorPoint
- Object
- IndicatorPoint
- Quant::Indicators::AtrPoint
- Defined in:
- lib/quant/indicators/atr.rb
Instance Attribute Summary
Attributes inherited from IndicatorPoint
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
22 23 24 |
# File 'lib/quant/indicators/atr.rb', line 22 def crossed_down? @crossed == :down end |
#crossed_up? ⇒ Boolean
18 19 20 |
# File 'lib/quant/indicators/atr.rb', line 18 def crossed_up? @crossed == :up end |