array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'function.trader-rocr.php', 1 => 'trader_rocr', ), 'up' => array ( 0 => 'ref.trader.php', 1 => 'Trader Funktionen', ), 'prev' => array ( 0 => 'function.trader-rocr100.php', 1 => 'trader_rocr100', ), 'next' => array ( 0 => 'function.trader-rsi.php', 1 => 'trader_rsi', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/trader/functions/trader-rocr.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL trader >= 0.2.0)
trader_rocr — Rate of change ratio: (price/prevPrice)
real
Array of real values.
timePeriod
Number of period. Valid range from 2 to 100000.
Returns an array with calculated data or false on failure.