Class: RubyTechnicalAnalysis::PivotPoints
- Defined in:
- lib/ruby_technical_analysis/indicators/pivot_points.rb
Overview
Pivot Points
Find more information at: www.fidelity.com/learning-center/trading-investing/technical-analysis/technical-indicator-guide/pivot-points
Instance Attribute Summary
Attributes inherited from Indicator
Instance Method Summary collapse
-
#call ⇒ Array
An array containing the current S3, S2, S1, pivot, R1, R2, and R3 values.
-
#valid? ⇒ Boolean
Whether or not the object is valid.
Methods inherited from Indicator
Constructor Details
This class inherits a constructor from RubyTechnicalAnalysis::Indicator
Instance Method Details
#call ⇒ Array
Returns An array containing the current S3, S2, S1, pivot, R1, R2, and R3 values.
12 13 14 |
# File 'lib/ruby_technical_analysis/indicators/pivot_points.rb', line 12 def call calculate_pivot_points end |
#valid? ⇒ Boolean
Returns Whether or not the object is valid.
17 18 19 |
# File 'lib/ruby_technical_analysis/indicators/pivot_points.rb', line 17 def valid? series.length == 3 end |