Trader/setup-Phpdoc专题
安装/配置
目录
需求
The trader extension is based on » TA-Lib. TA-Lib is fully integrated into the extension, therefore no external libraries are needed.
安装
此 » PECL 扩展未与 PHP 捆绑。
安装此 PECL 扩展相关的信息可在手册中标题为 PECL 扩展的安装章节中找到。更多信息如新的发行版本、下载、源文件、 维护人员信息及变更日志等,都在此处: » https://pecl.php.net/package/trader.
A DLL for this PECL extension is available under » http://windows.php.net/downloads/pecl/releases/trader/.
运行时配置
这些函数的行为受 php.ini 中的设置影响。
| 名字 | 默认 | 可修改范围 | 更新日志 |
|---|---|---|---|
| trader.real_precision | 3 | PHP_INI_ALL | Since trader 0.2.1 |
| trader.real_round_mode | HALF_DOWN | PHP_INI_ALL | Since trader 0.3.0 |
这是配置指令的简短说明。
trader.real_precision int
All the values in the returned arrays will be rounded to this precision.
However the calculations inside TA-Lib happen with unrounded values.
trader.real_round_mode string
Controls the trader real rounding policy. Valid values are HALF_UP,
HALF_DOWN, HALF_EVEN and HALF_ODD. The behaviour is identical
to the round() function
used with the mode argument.