From c14dc14c4e9466049cdc83ca58ef32fda978779c Mon Sep 17 00:00:00 2001 From: femtotrader Date: Mon, 8 Jul 2024 20:05:21 +0200 Subject: [PATCH] cleanup --- talipp/indicators/WilderMA.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/talipp/indicators/WilderMA.py b/talipp/indicators/WilderMA.py index bd3e165..7af148d 100644 --- a/talipp/indicators/WilderMA.py +++ b/talipp/indicators/WilderMA.py @@ -34,11 +34,9 @@ def __init__(self, period: int, self.initialize(input_values, input_indicator) def _calculate_new_value(self) -> Any: - #if not has_valid_values(self.input_values, self.period): if len(self.input_values) < self.period: return None elif has_valid_values(self.input_values, self.period, exact=True): - #elif len(self.input_values) == self.period: return sum(self.input_values[-self.period:]) / self.period else: return float(self.k * self.input_values[-1] + (1.0 - self.k) * self.output_values[-1])