The RSI condition has been added to the script. It triggers an alert when the 14-length RSI crosses above its 14-length moving average, alongside the existing conditions.
The script now includes the Bollinger Bands indicator and checks if the Bollinger Bands width percentile is above 20%. A buy signal is triggered only when all four criteria are met:
Price is above the 15 EMA. RSI crosses above its moving average. Price is above the PSAR value. Bollinger Bands width percentile is greater than 20%.