module TaLib

talib_ruby main module. class Function is defined in this module.

Public Class Methods

input_types() click to toggle source

get value-table for TA_Input_* of TA-Lib.

Return

Table of Input types: { val => :sym }. TA_Input_{Integer,Real,Price}

# File lib/tafunc.rb, line 35
def self.input_types
  ret = {}
  self.constants.grep( /^TA_Input/ ).each{|c| ret[const_get(c)] = c }
  return ret
end
ma_types() click to toggle source

get value-type table for TA_MAType_* of TA-Lib

Return

Table of MA types: { val => :sym }.

# File lib/tafunc.rb, line 67
def self.ma_types
  ret = {}
  self.constants.grep( /^TA_MAType_/ ).each{|c| ret[const_get(c)] = c }
  return ret
end
optinput_types() click to toggle source

get value-type table for TA_OptInput_* of TA-Lib.

Return

Table of optinput types: { val => :sym }. TA_OptInput_{Real,Integer}{Range,List}

# File lib/tafunc.rb, line 46
def self.optinput_types
  ret = {}
  self.constants.grep( /^TA_OptInput/ ).each{|c| ret[const_get(c)] = c }
  return ret
end
output_types() click to toggle source

get value-type table for TA_Output_* of TA-Lib.

Return

Table of output types: { val => :sym }. TA_Output_{Integer,Real}

# File lib/tafunc.rb, line 57
def self.output_types
  ret = {}
  self.constants.grep( /^TA_Output/ ).each{|c| ret[const_get(c)] = c }
  return ret
end