Update docstring for 2-Period RSI strategy

This commit is contained in:
moshferatu 2025-01-10 08:39:47 -08:00
parent 7f21388095
commit be4f58371d

View File

@ -5,8 +5,9 @@ from indicators import rsi, sma
def two_period_rsi(data: DataFrame) -> Series: def two_period_rsi(data: DataFrame) -> Series:
""" """
Calculate signals based on the 200-period MA and 2-period RSI. Calculate signals based on the 2-Period RSI strategy.
Returns a Series with 'Long' for signals and 'None' otherwise, without modifying the original DataFrame.
Returns a Series with 'L' for long signals and 'N' otherwise.
""" """
ma_200 = sma(data, period = 200) ma_200 = sma(data, period = 200)
rsi_2 = rsi(data, period = 2) rsi_2 = rsi(data, period = 2)