Simple technical analysis function calling
Wednesday, December 5th, 2007I added new function “call2″ to talib-ruby. It calls function from technical analysis library in more convenient way. For, example to call simple moving average function (SMA) with period = 10, input data in in_data array and output data in out_data array you can write:
TaLib::Function.call2( "SMA", # name of technical analysis function 0, # start index in input arrays for processing 9, # end index in input arrays for processing in_data, # input parameter out_data, # output parameter 10) # optional parameter
See repository…