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.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.