From 0777d8140541893919defce59984ff66e140cebc Mon Sep 17 00:00:00 2001 From: nardew <28791551+nardew@users.noreply.github.com> Date: Thu, 4 Jul 2024 22:58:46 +0200 Subject: [PATCH] Remove debug print outs --- talipp/indicators/RogersSatchell.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/talipp/indicators/RogersSatchell.py b/talipp/indicators/RogersSatchell.py index 1d0b5be..2771e68 100644 --- a/talipp/indicators/RogersSatchell.py +++ b/talipp/indicators/RogersSatchell.py @@ -32,8 +32,6 @@ def __init__(self, period: int, self.period = period - self.mult = sqrt(1.0 / self.period) - self.initialize(input_values, input_indicator) def _calculate_new_value(self) -> Any: @@ -43,6 +41,5 @@ def _calculate_new_value(self) -> Any: s = 0.0 for ohlcv in self.input_values[-self.period:]: s += log(float(ohlcv.high) / ohlcv.close) * log(float(ohlcv.high) / ohlcv.open) + log(float(ohlcv.low) / ohlcv.close) * log(float(ohlcv.low) / ohlcv.open) - print(s) - print(sqrt(s)) - return sqrt(s / self.period) + + return sqrt(s / self.period)