| 1 | <?php |
||
| 10 | class MovingAverageCrossoverDivergenceIndicator implements Indicator |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Invoke the indicator. |
||
| 14 | * |
||
| 15 | * @param Collection $ohlcv |
||
| 16 | * @param int $timePeriod |
||
| 17 | * @param int $slowPeriod |
||
| 18 | * @param int $signalPeriod |
||
| 19 | * |
||
| 20 | * @return int |
||
| 21 | * |
||
| 22 | * @throws Throwable |
||
| 23 | */ |
||
| 24 | public function __invoke(Collection $ohlcv, int $timePeriod = 12, int $slowPeriod = 26, int $signalPeriod = 9): int |
||
| 45 | } |
||
| 46 |