From a2649a5e48b264ded211b2bcd004fbfb8c81bd0f Mon Sep 17 00:00:00 2001 From: moshferatu Date: Mon, 28 Oct 2024 11:33:46 -0700 Subject: [PATCH] Use correct long and neutral signal abbreviations in 2-period RSI strategy --- strategies/two_period_rsi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strategies/two_period_rsi.py b/strategies/two_period_rsi.py index a55a3b4..06c644d 100644 --- a/strategies/two_period_rsi.py +++ b/strategies/two_period_rsi.py @@ -32,4 +32,4 @@ def signals(data: DataFrame) -> Series: rsi_2 = calculate_rsi(data) conditions = (data['Close'] > ma_200) & (rsi_2 < 5) - return Series(np.where(conditions, 'Long', 'None'), index = data.index) \ No newline at end of file + return Series(np.where(conditions, 'L', 'N'), index = data.index) \ No newline at end of file