Module: TaLib
- Defined in:
- lib/tafunc.rb
Overview
talib_ruby main module. class Function is defined in this module.
Defined Under Namespace
Class Method Summary collapse
-
.input_types ⇒ Object
get value-table for TA_Input_* of TA-Lib.
-
.ma_types ⇒ Object
get value-type table for TA_MAType_* of TA-Lib ==== Return Table of MA types: { val => :sym }.
-
.optinput_types ⇒ Object
get value-type table for TA_OptInput_* of TA-Lib.
-
.output_types ⇒ Object
get value-type table for TA_Output_* of TA-Lib.
Class Method Details
.input_types ⇒ Object
get value-table for TA_Input_* of TA-Lib.
Return
Table of Input types: { val => :sym }. TA_Input_Integer,Real,Price
35 36 37 38 39 |
# 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 ⇒ Object
get value-type table for TA_MAType_* of TA-Lib
Return
Table of MA types: { val => :sym }.
67 68 69 70 71 |
# 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 ⇒ Object
get value-type table for TA_OptInput_* of TA-Lib.
Return
Table of optinput types: { val => :sym }. TA_OptInput_Real,IntegerRange,List
46 47 48 49 50 |
# 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 ⇒ Object
get value-type table for TA_Output_* of TA-Lib.
Return
Table of output types: { val => :sym }. TA_Output_Integer,Real
57 58 59 60 61 |
# 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 |