OPEN-SOURCE SCRIPT
Multi-Timeframe Supertrend Strategy with Confirmations

This is a multi-timeframe Supertrend strategy with a dual-exit system. In brief:
Core Concept: Follow the trend using Supertrend as the primary engine.
Entry:
Long when Supertrend flips from red to green (bearish to bullish)
Short when Supertrend flips from green to red (bullish to bearish)
Filters (optional):
RSI, EMA, and ADX confirmations to reduce false signals
Exit (whichever comes first):
Trailing stop loss (protects profits once price moves favorably)
Opposite Supertrend signal (exits when trend reverses)
Key Features:
Works on any timeframe combination (e.g., use 1-hour Supertrend on 15-minute chart)
Long/short direction can be toggled independently
Trailing stop activates only after price moves a specified percentage in your favor
In essence: Ride the trend until either a protective stop triggers or the trend reverses, using higher-timeframe signals for cleaner entries.
Core Concept: Follow the trend using Supertrend as the primary engine.
Entry:
Long when Supertrend flips from red to green (bearish to bullish)
Short when Supertrend flips from green to red (bullish to bearish)
Filters (optional):
RSI, EMA, and ADX confirmations to reduce false signals
Exit (whichever comes first):
Trailing stop loss (protects profits once price moves favorably)
Opposite Supertrend signal (exits when trend reverses)
Key Features:
Works on any timeframe combination (e.g., use 1-hour Supertrend on 15-minute chart)
Long/short direction can be toggled independently
Trailing stop activates only after price moves a specified percentage in your favor
In essence: Ride the trend until either a protective stop triggers or the trend reverses, using higher-timeframe signals for cleaner entries.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.