| 1 | <?php |
||
| 10 | class HilbertTransformInstantaneousTrendlineIndicator implements Indicator |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The shortcut name. |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | const SHORTCUT = 'htit'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Invoke the indicator. |
||
| 21 | * |
||
| 22 | * @param Collection $ohlcv |
||
| 23 | * @param int $timePeriod |
||
| 24 | * |
||
| 25 | * @return int |
||
| 26 | * |
||
| 27 | * @throws Throwable |
||
| 28 | */ |
||
| 29 | public function __invoke(Collection $ohlcv, int $timePeriod = 4): int |
||
| 59 | } |
||
| 60 |