EMA+RSI Pump & Drop Swing Sniper (With Alerts)

This is using an EMA and RSI with slightly modified settings to give good entry and exit points while looking at Bitcoin . I use this on a 4-hour chart and with other indicators to find good positions to enter a trade or exit if things are turning red.

If you click on the EMA line it will color the bars of the chart based on if they are above or below the EMA - This is just visually helpful for me to see the active trend.

Make sure you hover over or click on the EMA line to see the colors of the candles change - it's not visible by default or without doing this.
Release Notes: Fixed code that was causing the long and short alerts to fire at opposite times.
Thanks to @pacbrother for catching this.
Release Notes: Removed offset=-1 which was displaying the L or S earlier than the alert would call it.
I still don't recommend you use this at your only alert to enter or exit a trade. I just use this as a visual confirmation with other indicators.

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?