From a4d93b850ed9e628515256514e716b15d08089c9 Mon Sep 17 00:00:00 2001 From: Joshua Date: Mon, 9 Oct 2023 14:10:35 -0700 Subject: [PATCH] Fixed issue #16 --- source/TALib/Core/Core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/TALib/Core/Core.php b/source/TALib/Core/Core.php index df3fab7..2e597e2 100644 --- a/source/TALib/Core/Core.php +++ b/source/TALib/Core/Core.php @@ -96,7 +96,7 @@ public static function construct(): void /* when measuring distance between parts of candles or width of gaps "equal" means "<= 5% of the average of the 5 previous candles' high-low range" */ new CandleSetting(CandleSettingType::Equal, RangeType::HighLow, 5, 0.05), ]; - static::$unstablePeriod = \array_pad([], count(UnstablePeriodFunctionID::cases()) - 2, 0); + static::$unstablePeriod = \array_pad([], UnstablePeriodFunctionID::ALL - 2, 0); } public static function setUnstablePeriod(int $functionID, int $unstablePeriod): void