PROTECTED SOURCE SCRIPT
Supertrend + DEMA Buy Sell Signals with RSI Exits

🟢 Supertrend + DEMA Buy/Sell with RSI & Supertrend Exits
Description
A complete trend-following indicator that combines Supertrend and Double EMA (DEMA) for precise buy/sell entries, with optional RSI-based and Supertrend-based exit signals.
It’s designed to keep charts clean, responsive, and ready for automation or alerts.
🔍 How It Works
Entries
• Buy when price closes above DEMA and Supertrend flips to uptrend.
• Sell when price closes below DEMA and Supertrend flips to downtrend.
Exits
You can choose one or both methods in the settings:
• RSI Exit – closes long when RSI get overbought, short when RSI is oversold.
• Supertrend Exit – closes long when Supertrend changes to downtrend, short when it changes to uptrend.
Signal Confirmation
Optional “Confirm on Close” ensures that signals and alerts only trigger after the bar closes, avoiding intrabar repainting.
⚙️ Features
✅ Dual confirmation entries (Supertrend + DEMA)
✅ Configurable RSI and Supertrend exits
✅ Real-time visual buy/sell/exit markers
✅ Clean color background for up/down trends
✅ Built-in alert() calls
✅ Adjustable DEMA and ATR parameters
✅ Non-repainting signals (when confirmed on close)
📈 Alerts
All signals (Buy, Sell, Exit Long, Exit Short) include:
alert() calls compatible with “Any alert() function call”
💡 Tips
Works best on trending markets and higher timeframes (15m+).
Combine with volume or structure filters for additional confirmation.
For scalping, disable “Confirm on Close” to see intrabar setups faster.
This indicator is designed for traders seeking simple, rule-based entries and exits powered by trend and momentum confirmation.
Description
A complete trend-following indicator that combines Supertrend and Double EMA (DEMA) for precise buy/sell entries, with optional RSI-based and Supertrend-based exit signals.
It’s designed to keep charts clean, responsive, and ready for automation or alerts.
🔍 How It Works
Entries
• Buy when price closes above DEMA and Supertrend flips to uptrend.
• Sell when price closes below DEMA and Supertrend flips to downtrend.
Exits
You can choose one or both methods in the settings:
• RSI Exit – closes long when RSI get overbought, short when RSI is oversold.
• Supertrend Exit – closes long when Supertrend changes to downtrend, short when it changes to uptrend.
Signal Confirmation
Optional “Confirm on Close” ensures that signals and alerts only trigger after the bar closes, avoiding intrabar repainting.
⚙️ Features
✅ Dual confirmation entries (Supertrend + DEMA)
✅ Configurable RSI and Supertrend exits
✅ Real-time visual buy/sell/exit markers
✅ Clean color background for up/down trends
✅ Built-in alert() calls
✅ Adjustable DEMA and ATR parameters
✅ Non-repainting signals (when confirmed on close)
📈 Alerts
All signals (Buy, Sell, Exit Long, Exit Short) include:
alert() calls compatible with “Any alert() function call”
💡 Tips
Works best on trending markets and higher timeframes (15m+).
Combine with volume or structure filters for additional confirmation.
For scalping, disable “Confirm on Close” to see intrabar setups faster.
This indicator is designed for traders seeking simple, rule-based entries and exits powered by trend and momentum confirmation.
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用它,没有任何限制 — 在此处了解更多信息。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用它,没有任何限制 — 在此处了解更多信息。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。