Skip to content

Commit

Permalink
Remove debug print outs
Browse files Browse the repository at this point in the history
  • Loading branch information
nardew committed Jul 4, 2024
1 parent 71278b8 commit 0777d81
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions talipp/indicators/RogersSatchell.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)

0 comments on commit 0777d81

Please sign in to comment.