array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'function.trader-roc.php', 1 => 'trader_roc', ), 'up' => array ( 0 => 'ref.trader.php', 1 => 'Funciones de Trader', ), 'prev' => array ( 0 => 'function.trader-ppo.php', 1 => 'trader_ppo', ), 'next' => array ( 0 => 'function.trader-rocp.php', 1 => 'trader_rocp', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'es', 'path' => 'reference/trader/functions/trader-roc.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL trader >= 0.2.0)
trader_roc — Ritmo de cambio : ((precio/precioAnterior)-1)*100
real
Array de valores reales.
timePeriod
Número del periodo. Rango válido desde 2 hasta 100000.
Devuelve un array con los datos calculados o false en caso de error.