<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.trader.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'function.trader-rocp.php',
    1 => 'trader_rocp',
    2 => 'Rate of change Percentage: (price-prevPrice)/prevPrice',
  ),
  'up' => 
  array (
    0 => 'ref.trader.php',
    1 => 'Trader Functions',
  ),
  'prev' => 
  array (
    0 => 'function.trader-roc.php',
    1 => 'trader_roc',
  ),
  'next' => 
  array (
    0 => 'function.trader-rocr.php',
    1 => 'trader_rocr',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/trader/functions/trader-rocp.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.trader-rocp" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">trader_rocp</h1>
  <p class="verinfo">(PECL trader &gt;= 0.2.0)</p><p class="refpurpose"><span class="refname">trader_rocp</span> &mdash; <span class="dc-title">Rate of change Percentage: (price-prevPrice)/prevPrice</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.trader-rocp-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>trader_rocp</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$real</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$timePeriod</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <p class="para rdfs-comment">

  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.trader-rocp-parameters">
  <h3 class="title">Parameters</h3>
  <dl>
   
    <dt><code class="parameter">real</code></dt>
    <dd>
     <p class="para">
      Array of real values.
     </p>
    </dd>
   
   
    <dt><code class="parameter">timePeriod</code></dt>
    <dd>
     <p class="para">
      Number of period. Valid range from 2 to 100000.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.trader-rocp-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">Returns an array with calculated data or false on failure.</p>
 </div>



</div><?php manual_footer($setup); ?>