Method: TechnicalAnalysis::Cci.min_data_size

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

.min_data_size(period: 20, **params) ⇒ Integer

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

Parameters:

  • options (Hash)

    The options for the technical indicator

Returns:

  • (Integer)

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



40
41
42
# File 'lib/technical_analysis/indicators/cci.rb', line 40

def self.min_data_size(period: 20, **params)
  period.to_i
end