OPEN-SOURCE SCRIPT
Buy & Sell by AnupamKafle

This indicator provides Buy and Sell signals based on a combination of classic technical analysis tools: EMA Crossovers, RSI, MACD, and optional Bollinger Bands.
✅ Buy signals are shown as green arrows below bars
✅ Sell signals are shown as red arrows above bars
📊 Logic Overview:
EMA Crossover: Fast EMA crossing over the Slow EMA = Bullish signal
RSI Filter: RSI below oversold threshold = Buy condition, above overbought = Sell condition
MACD Filter: MACD line crossing above Signal line = Buy, crossing below = Sell
Bollinger Bands (optional): Buy when price breaks below lower band, Sell when price breaks above upper band
All filters can be turned on or off individually to customize the signal conditions to your strategy.
⚙️ Settings Include:
Enable/Disable each indicator (EMA, RSI, MACD, BB)
Custom lengths for EMA, RSI, MACD, and BB
Adjustable RSI thresholds and Bollinger Band deviation
🔔 Alerts:
Built-in alert conditions for Buy and Sell signals allow you to set up real-time notifications.
✅ Buy signals are shown as green arrows below bars
✅ Sell signals are shown as red arrows above bars
📊 Logic Overview:
EMA Crossover: Fast EMA crossing over the Slow EMA = Bullish signal
RSI Filter: RSI below oversold threshold = Buy condition, above overbought = Sell condition
MACD Filter: MACD line crossing above Signal line = Buy, crossing below = Sell
Bollinger Bands (optional): Buy when price breaks below lower band, Sell when price breaks above upper band
All filters can be turned on or off individually to customize the signal conditions to your strategy.
⚙️ Settings Include:
Enable/Disable each indicator (EMA, RSI, MACD, BB)
Custom lengths for EMA, RSI, MACD, and BB
Adjustable RSI thresholds and Bollinger Band deviation
🔔 Alerts:
Built-in alert conditions for Buy and Sell signals allow you to set up real-time notifications.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, penulis skrip ini telah menjadikannya sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Hormat untuk penulisnya! Meskipun anda dapat menggunakannya secara gratis, ingatlah bahwa penerbitan ulang kode tersebut tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, penulis skrip ini telah menjadikannya sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Hormat untuk penulisnya! Meskipun anda dapat menggunakannya secara gratis, ingatlah bahwa penerbitan ulang kode tersebut tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.