Class: RubyTechnicalAnalysis::Indicator
- Inherits:
-
Object
- Object
- RubyTechnicalAnalysis::Indicator
- Defined in:
- lib/ruby_technical_analysis/indicator.rb
Overview
Base class for indicators
Direct Known Subclasses
BollingerBands, ChaikinMoneyFlow, ChandeMomentumOscillator, CommodityChannelIndex, EnvelopesEma, IntradayMomentumIndex, Macd, MassIndex, MovingAverages, PivotPoints, PriceChannel, QStick, RateOfChange, RelativeMomentumIndex, RelativeStrengthIndex, StatisticalMethods, StochasticOscillator, VolumeOscillator, VolumeRateOfChange, WildersSmoothing, WilliamsPercentR
Instance Attribute Summary collapse
-
#series ⇒ Object
readonly
Returns the value of attribute series.
Class Method Summary collapse
-
.call(**kwargs) ⇒ Object
standard:disable Style/ArgumentsForwarding.
Instance Method Summary collapse
-
#initialize(series: []) ⇒ Indicator
constructor
A new instance of Indicator.
Constructor Details
#initialize(series: []) ⇒ Indicator
Returns a new instance of Indicator.
11 12 13 |
# File 'lib/ruby_technical_analysis/indicator.rb', line 11 def initialize(series: []) @series = series end |
Instance Attribute Details
#series ⇒ Object (readonly)
Returns the value of attribute series.
4 5 6 |
# File 'lib/ruby_technical_analysis/indicator.rb', line 4 def series @series end |
Class Method Details
.call(**kwargs) ⇒ Object
standard:disable Style/ArgumentsForwarding
6 7 8 |
# File 'lib/ruby_technical_analysis/indicator.rb', line 6 def self.call(**kwargs) # standard:disable Style/ArgumentsForwarding new(**kwargs).call # standard:disable Style/ArgumentsForwarding end |