執行時期設定

這些函式的行為受 php.ini 的影響。

Trader 設定選項
名字 預設 可修改範圍 更新日誌
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 integer

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.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top