OPEN-SOURCE SCRIPT
SK Stable Supertrend Optimizer

SK Stable Supertrend Optimizer
Author: Shayan Khursheed
SK Stable Supertrend Optimizer is a day-trading Supertrend optimization tool designed to make trend, momentum, and entry quality easy to read at a glance.
The script tests 100 Supertrend combinations bar by bar across different ATR lengths and multipliers. It ranks the results using selectable performance metrics, then highlights both the best single setting and the safer stable parameter zone. The stable zone is designed to help avoid over-optimized settings that only work for one perfect market condition.
The indicator is built for lower timeframes such as 5m, 15m, and 30m. It combines optimized Supertrend direction with a simple momentum score, agreement filter, volatility filter, trend filter, and optional volume confirmation.
Key features:
100 Supertrend parameter combinations
Best setting and stable-zone selection
Heatmap dashboard
Long, short, and wait status
Momentum score from 1/5 to 5/5
Fast and slow momentum EMAs
RSI momentum confirmation
Volume confirmation
Pullback momentum entries
Beginner-friendly BUY, SELL, MOMO, and WAIT signals
Alerts for long and short setups
How to read it:
LONG BIAS means only look for buys.
SHORT BIAS means only look for sells.
WAIT means skip the trade.
MOMO 4/5 or 5/5 means momentum is strong.
Green Supertrend line means bullish support.
Red Supertrend line means bearish resistance.
BEST shows the highest single-performing setting.
SAFE shows the most stable parameter zone.
Simple trading idea:
Use LONG BIAS with strong MOMO to look for pullback buys near the green Supertrend line. Use SHORT BIAS with strong MOMO to look for rally sells near the red Supertrend line. Avoid trades when the dashboard shows WAIT, weak momentum, low agreement, or bad volatility conditions.
This tool is an indicator and optimization assistant, not financial advice or a guarantee of profit. Always backtest, forward-test, and use proper risk management.
Author: Shayan Khursheed
SK Stable Supertrend Optimizer is a day-trading Supertrend optimization tool designed to make trend, momentum, and entry quality easy to read at a glance.
The script tests 100 Supertrend combinations bar by bar across different ATR lengths and multipliers. It ranks the results using selectable performance metrics, then highlights both the best single setting and the safer stable parameter zone. The stable zone is designed to help avoid over-optimized settings that only work for one perfect market condition.
The indicator is built for lower timeframes such as 5m, 15m, and 30m. It combines optimized Supertrend direction with a simple momentum score, agreement filter, volatility filter, trend filter, and optional volume confirmation.
Key features:
100 Supertrend parameter combinations
Best setting and stable-zone selection
Heatmap dashboard
Long, short, and wait status
Momentum score from 1/5 to 5/5
Fast and slow momentum EMAs
RSI momentum confirmation
Volume confirmation
Pullback momentum entries
Beginner-friendly BUY, SELL, MOMO, and WAIT signals
Alerts for long and short setups
How to read it:
LONG BIAS means only look for buys.
SHORT BIAS means only look for sells.
WAIT means skip the trade.
MOMO 4/5 or 5/5 means momentum is strong.
Green Supertrend line means bullish support.
Red Supertrend line means bearish resistance.
BEST shows the highest single-performing setting.
SAFE shows the most stable parameter zone.
Simple trading idea:
Use LONG BIAS with strong MOMO to look for pullback buys near the green Supertrend line. Use SHORT BIAS with strong MOMO to look for rally sells near the red Supertrend line. Avoid trades when the dashboard shows WAIT, weak momentum, low agreement, or bad volatility conditions.
This tool is an indicator and optimization assistant, not financial advice or a guarantee of profit. Always backtest, forward-test, and use proper risk management.
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.