Update docstring for 2-Period RSI strategy
This commit is contained in:
parent
7f21388095
commit
be4f58371d
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user