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.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
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.
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
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.
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。