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.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.