Simple technical analysis function calling

del.icio.us Reddit Slashdot Digg Facebook Technorati Google StumbleUpon Yahoo Bloglines Bookmark.it Ask Mister Wong Netvouz

I 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…

Leave a Reply