Method: TechnicalAnalysis::Indicator.min_data_size

Defined in:
lib/technical_analysis/indicators/indicator.rb

.min_data_size(indicator_symbol, options) ⇒ Integer

Calculates the minimum number of observations needed to calculate the technical indicator

Parameters:

  • The options for the technical indicator

Returns:

  • Returns the minimum number of observations needed to calculate the technical indicator based on the options provided



101
102
103
104
# File 'lib/technical_analysis/indicators/indicator.rb', line 101

def self.min_data_size(indicator_symbol, options)
  raise "#{self.name} did not implement min_data_size"
  nil
end