Skip to content

Commit f7efd2f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ad554ad commit f7efd2f

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

financial/relative_strength_index.py

+17-1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,22 @@ def calculate_rsi(prices: list[float], period: int = 14) -> list[float]:
6868

6969

7070
if __name__ == "__main__":
71-
prices = [44.0, 44.15, 44.09, 44.20, 44.30, 44.25, 44.40, 44.35, 44.50, 44.60, 44.55, 44.75, 44.80, 44.70, 44.85]
71+
prices = [
72+
44.0,
73+
44.15,
74+
44.09,
75+
44.20,
76+
44.30,
77+
44.25,
78+
44.40,
79+
44.35,
80+
44.50,
81+
44.60,
82+
44.55,
83+
44.75,
84+
44.80,
85+
44.70,
86+
44.85,
87+
]
7288
rsi = calculate_rsi(prices, 14)
7389
print("RSI Values:", rsi)

0 commit comments

Comments
 (0)