trader_rocp
PHP function
Edit on GitHub ✎
(PECL trader >= 0.2.0)
Rate of change Percentage: (price-prevPrice)/prevPrice
Description
trader_rocp(array $real, [int $timePeriod]): array
Parameters
realReal
timePeriodPeriod
Return Values
Returns an array with calculated data or false on failure.