GoLang trader_rocr

request it (106)
GoLang replacement for PHP's trader_rocr [edit | history]



Do you know a GoLang replacement for PHP's trader_rocr? Write it!

PHP trader_rocr

PHP original manual for trader_rocr [ show | php.net ]

trader_rocr

(PECL trader >= 0.2.0)

trader_rocrRate of change ratio: (price/prevPrice)

Description

array trader_rocr ( array $real [, int $timePeriod ] )

Parameters

real

Array of real values.

timePeriod

Number of period. Valid range from 2 to 100000.

Return Values

Returns an array with calculated data or false on failure.