Method: TechnicalAnalysis::Vpt.validate_options

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

.validate_options(options) ⇒ Boolean

Validates the provided options for this technical indicator

Parameters:

  • options (Hash)

    The options for the technical indicator to be validated

Returns:

  • (Boolean)

    Returns true if options are valid or raises a ValidationError if they’re not



31
32
33
34
# File 'lib/technical_analysis/indicators/vpt.rb', line 31

def self.validate_options(options)
  return true if options == {}
  raise Validation::ValidationError.new "This indicator doesn't accept any options."
end