trader_get_compat

(PECL trader >= 0.2.2) Get compatibility mode integer trader_get_compat ( void ) Get compatibility mode which affects the way calculations are done by all the extension functions. Returns: Returns the compatibility mode id which can be identified by TRADER_COMPATIBILITY_* series of constants.

trader_floor

(PECL trader >= 0.2.0) Vector Floor array trader_floor ( array $real ) Calculates the next lowest integer for each value in real and returns the resulting array. Parameters: real Array of real values. Returns: Returns an array with calculated data or false on failure.

trader_exp

(PECL trader >= 0.2.0) Vector Arithmetic Exp array trader_exp ( array $real ) Calculates e raised to the power of each value in real. Returns an array with the calculated data. Parameters: real Array of real values. Returns: Returns an array with calculated data or false on failure.

trader_errno

(PECL trader >= 0.3.0) Get error code integer trader_errno ( void ) Get error code of the last operation. Returns: Returns the error code identified by one of the TRADER_ERR_* constants.

trader_ema

(PECL trader >= 0.2.0) Exponential Moving Average array trader_ema ( array $real [, integer $timePeriod ] ) Parameters: real Array of real values. timePeriod Number of period. Valid range from 2 to 100000. Returns: Returns an array with calculated data or false on failure.

trader_dx

(PECL trader >= 0.2.0) Directional Movement Index array trader_dx ( array $high, array $low, array $close [, integer $timePeriod ] ) Parameters: high High price, array of real values. low Low price, array of real values. close Closing price, array of real values. timePeriod

trader_div

(PECL trader >= 0.2.0) Vector Arithmetic Div array trader_div ( array $real0, array $real1 ) Divides each value from real0 by the corresponding value from real1 and returns the resulting array. Parameters: real0 Array of real values. real1 Array of real values. Returns: Returns an array with calculated data o

trader_dema

(PECL trader >= 0.2.0) Double Exponential Moving Average array trader_dema ( array $real [, integer $timePeriod ] ) Parameters: real Array of real values. timePeriod Number of period. Valid range from 2 to 100000. Returns: Returns an array with calculated data or false on failure.

trader_cosh

(PECL trader >= 0.2.0) Vector Trigonometric Cosh array trader_cosh ( array $real ) Calculates the hyperbolic cosine for each value in real and returns the resulting array. Parameters: real Array of real values. Returns: Returns an array with calculated data or false on failure.

trader_cos

(PECL trader >= 0.2.0) Vector Trigonometric Cos array trader_cos ( array $real ) Calculates the cosine for each value in real and returns the resulting array. Parameters: real Array of real values. Returns: Returns an array with calculated data or false on failure.