From be4f58371d59f484df5b2b78a01052f45a3366fe Mon Sep 17 00:00:00 2001 From: moshferatu Date: Fri, 10 Jan 2025 08:39:47 -0800 Subject: [PATCH] Update docstring for 2-Period RSI strategy --- strategies/two_period_rsi.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/strategies/two_period_rsi.py b/strategies/two_period_rsi.py index 34ff725..5771082 100644 --- a/strategies/two_period_rsi.py +++ b/strategies/two_period_rsi.py @@ -5,8 +5,9 @@ from indicators import rsi, sma def two_period_rsi(data: DataFrame) -> Series: """ - Calculate signals based on the 200-period MA and 2-period RSI. - Returns a Series with 'Long' for signals and 'None' otherwise, without modifying the original DataFrame. + Calculate signals based on the 2-Period RSI strategy. + + Returns a Series with 'L' for long signals and 'N' otherwise. """ ma_200 = sma(data, period = 200) rsi_2 = rsi(data, period = 2)