Set 2-Period RSI entry threshold to 15 (up from 5)
This commit is contained in:
parent
ffbb3f4fc1
commit
8d9121d02a
@ -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)
|
Loading…
Reference in New Issue
Block a user