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.
Skrypt chroniony
Ten skrypt został opublikowany jako zamknięty kod źródłowy. Możesz jednak używać go swobodnie i bez żadnych ograniczeń – więcej informacji tutaj.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.
Skrypt chroniony
Ten skrypt został opublikowany jako zamknięty kod źródłowy. Możesz jednak używać go swobodnie i bez żadnych ograniczeń – więcej informacji tutaj.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.