This is in the changelog for pecl trader extension version 0.4.1. Previous versions used 2 arguments, now only one (see https://pecl.php.net/package-changelog.php?package=trader&release=0.4.1)
PHP - Manual: trader_ht_sine
2024-11-12
(PECL trader >= 0.2.0)
trader_ht_sine — Hilbert Transform - SineWave
$real
): array
real
浮点数数组。
Returns an array with calculated data or false on failure.
This is in the changelog for pecl trader extension version 0.4.1. Previous versions used 2 arguments, now only one (see https://pecl.php.net/package-changelog.php?package=trader&release=0.4.1)
Documentation is missing a value
$hts = trader_ht_sine($a['open'],$a['close']);
官方地址:https://www.php.net/manual/en/function.trader-ht-sine.php