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.
Catatan Pelepasan: Fixed code that was causing the long and short alerts to fire at opposite times.
Thanks to @pacbrother for catching this.
Catatan Pelepasan: 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.
Skrip sumber terbuka

Dalam semangat TradingView yang sebenar, penulis skrip ini telah menerbitkannya dengan menggunakan sumber terbuka supaya pedagang-pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda dapat menggunakannya secara percuma tetapi penggunaan semula kod ini dalam penerbitan adalah dikawalselia oleh Peraturan Rumah. Anda boleh menyukai skrip ini untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?


Hey man great job, but the short alert seems to trigger multiple times and I was wondering if there was a way to fix this. The long alert is perfect though.
Thanks man
+3 Balas
does this repaint? i can see that it enters trades typically two candles after the buy shouldve been triggered? how do i get rid of this
+1 Balas
mmoiwgg edhartless
@edhartless, I removed the offset, I was using it as a visual only and not as an entry or exit alert so the offset at -1 was showing a L or S 1 bar early.
If you use it as an entry or exit it will now enter or exit on the very next candle after the alert is called.
+1 Balas
Good job,
Can anyone explain to me how this code is working? How does it determine when to short or go long?
just for kicks, im trying this on a 1min TS on various coins on papertrading :) im really curios as to what other indicators would refine this??
thanks for your work!
Why is the sell alert is being sent multiple times? This causes lossess :(. Any way to fix this? Is it because the short position input condition is set at high?
Nice script! Thank you! Can you make a strategy tester for this scrpit?