OPEN-SOURCE SCRIPT
Supertrend Strategy v.1.0 (Nikko)

This is the well-known Supertrend indicator, adapted for use as a strategy and updated to be compatible with Pine Script v6.
While I am not the original author of this indicator, I was curious to assess its real-world performance. The Supertrend is widely promoted by trading influencers, and I assumed many traders rely on it in their decision-making.
My goal was to stress-test the Supertrend by converting it into a strategy, to evaluate whether it could be a reliable tool to follow.
After testing it across various timeframes and assets, I found that it generally delivers poor results in terms of profitable trades. It performs somewhat better when the number of trades is kept low, but once trade frequency increases, the strategy tends to lose significantly due to its low win rate. This is an important caveat for those considering its use—be cautious, especially in high-frequency setups.
The source code is open for anyone who wants to improve or investigate further. If you identify any optimizations or bugs, feel free to share them with the community so we can all benefit.
------------------------------------------------------
How the Supertrend Indicator Works
The Supertrend indicator is a trend-following tool designed to identify whether the market is in a bullish or bearish phase. It's often used to signal potential entry and exit points for trades.
It is built on the Average True Range (ATR), a measure of volatility, and a user-defined multiplier. These inputs are used to calculate dynamic support and resistance bands:
When the price is above the Supertrend line, the trend is considered bullish.
When the price is below the Supertrend line, the trend is considered bearish.
These trend shifts can offer visual cues for trade direction, but as seen in strategy testing, the effectiveness may vary widely depending on market conditions and timeframes.
While I am not the original author of this indicator, I was curious to assess its real-world performance. The Supertrend is widely promoted by trading influencers, and I assumed many traders rely on it in their decision-making.
My goal was to stress-test the Supertrend by converting it into a strategy, to evaluate whether it could be a reliable tool to follow.
After testing it across various timeframes and assets, I found that it generally delivers poor results in terms of profitable trades. It performs somewhat better when the number of trades is kept low, but once trade frequency increases, the strategy tends to lose significantly due to its low win rate. This is an important caveat for those considering its use—be cautious, especially in high-frequency setups.
The source code is open for anyone who wants to improve or investigate further. If you identify any optimizations or bugs, feel free to share them with the community so we can all benefit.
------------------------------------------------------
How the Supertrend Indicator Works
The Supertrend indicator is a trend-following tool designed to identify whether the market is in a bullish or bearish phase. It's often used to signal potential entry and exit points for trades.
It is built on the Average True Range (ATR), a measure of volatility, and a user-defined multiplier. These inputs are used to calculate dynamic support and resistance bands:
When the price is above the Supertrend line, the trend is considered bullish.
When the price is below the Supertrend line, the trend is considered bearish.
These trend shifts can offer visual cues for trade direction, but as seen in strategy testing, the effectiveness may vary widely depending on market conditions and timeframes.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Telegram: t.me/cryptonikkoid
I do not answer to private messages. Use the comment section of the idea or script, or use Telegram.
I do not answer to private messages. Use the comment section of the idea or script, or use Telegram.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Telegram: t.me/cryptonikkoid
I do not answer to private messages. Use the comment section of the idea or script, or use Telegram.
I do not answer to private messages. Use the comment section of the idea or script, or use Telegram.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.