Set 2-Period RSI entry threshold to 15 (up from 5)

This commit is contained in:
moshferatu 2024-11-21 12:30:42 -08:00
parent ffbb3f4fc1
commit 8d9121d02a

View File

@ -31,5 +31,5 @@ def signals(data: DataFrame) -> Series:
ma_200 = calculate_moving_average(data)
rsi_2 = calculate_rsi(data)
conditions = (data['Close'] > ma_200) & (rsi_2 < 5)
conditions = (data['Close'] > ma_200) & (rsi_2 < 15)
return Series(np.where(conditions, 'L', 'N'), index = data.index)