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.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.