Supertrend Buy Sell Signals — Complete TradingView Guide
Supertrend buy sell signals for TradingView. Trend flip signals, ATR-based stop levels, and multi-timeframe analysis with real Pine Script code and ES futures examples.
Supertrend Signal Interpretation
Quick-reference guide to 5 signal types you will see on the chart.
| Signal Type | Indicator Condition | Market Meaning | Reliability |
|---|---|---|---|
| Trend Flip to Long → Buy | Supertrend flips from red (below price) to green (above price) | Downtrend has ended. The ATR-based trailing stop now sits below price, supporting a long bias. Typical entry when the color changes on your chosen timeframe. | 4/5 |
| Trend Flip to Short → Sell | Supertrend flips from green (above price) to red (below price) | Uptrend has reversed. The stop now sits above price, favoring short positions. Works well on H1 and above for swing trades. | 4/5 |
| Price Rejection at Supertrend Line → Reversal | Price touches the Supertrend line with a long wick and bounces without flipping | The Supertrend line is acting as dynamic support or resistance. A rejection without a flip suggests the trend is still intact. I take this as a continuation entry, not a reversal. | 3/5 |
| ATR Compression Before Flip → Trend Acceleration | ATR narrows significantly for 3-5 bars, then Supertrend flips with an expanded ATR bar | Low volatility compression is releasing into a new trend direction. The flip that follows low ATR tends to produce stronger follow-through moves. | 3/5 |
| Multi-Timeframe Supertrend Alignment → Strong Trend | Supertrend shows the same direction on 15m, 1H, and 4H simultaneously | All timeframes agree on direction. Trades taken during alignment have fewer false flips. On ES this alignment produces moves of 15-30 points on average. | 5/5 |
Supertrend Pine Script Signal Code
Ready-to-use Pine Script code for generating buy/sell signals. Copy and paste into your TradingView Pine Editor.
//@version=5
indicator("Supertrend Buy Sell Signals", overlay=true)
atrPeriod = input.int(10, "ATR Period")
factor = input.float(3.0, "ATR Multiplier")
[supertrend, direction] = ta.supertrend(factor, atrPeriod)
// Buy when Supertrend flips from bearish to bullish (direction changes from -1 to 1)
buySignal = ta.crossover(direction, 0)
// Sell when Supertrend flips from bullish to bearish (direction changes from 1 to -1)
sellSignal = ta.crossunder(direction, 0)
// Plot Supertrend line
plot(supertrend, "Supertrend", color = direction == 1 ? color.new(#00E676, 30) : color.new(#FF5252, 30), linewidth = 2)
// Plot buy/sell labels
plotshape(buySignal, "Buy Signal", shape.triangleup, location.belowbar, color=#00E676, size=size.small, text="BUY", textcolor=color.white)
plotshape(sellSignal, "Sell Signal", shape.triangledown, location.abovebar, color=#FF5252, size=size.small, text="SELL", textcolor=color.white)
// ATR-based stop for entries
atrStop = ta.atr(atrPeriod) * factor
// Alert conditions
alertcondition(buySignal, "Supertrend Buy", "Supertrend flipped long - bullish trend confirmed")
alertcondition(sellSignal, "Supertrend Sell", "Supertrend flipped short - bearish trend confirmed")Recommended Parameters for Supertrend
Parameter settings tested across different market conditions and timeframes.
| Parameter | Default | Description |
|---|---|---|
| ATR Period | 10 | Lookback period for ATR calculation. Lower values (7) make the Supertrend more reactive to price changes, generating more signals. Higher values (14) smooth the line, reducing whipsaws. I use 7 on 5m ES charts for day trading, and 14 on daily charts for swing trades. |
| ATR Multiplier | 3.0 | Distance multiplier from price. Lower values (1.5-2.0) hug price tighter, causing more frequent flips. Higher values (3.5-4.0) give more room. In my BTC swing trading since April 2025, the 3.0 multiplier on 4H produced about 12 flips per month, of which 8 were profitable with 1:2 risk-reward. |
| Trend Direction Offset | Computed automatically | The direction output is derived internally by ta.supertrend. When direction is 1, price trades above the Supertrend line. When direction is -1, price trades below it. The atrStop variable in the script computes the effective distance for stop placement. |
Supertrend + Pineify Invite-Only: Better Together
Supertrend alone gives you one signal type. Pineify invite-only indicator combines Supertrend with RSI divergences, MACD confirmation, and Supertrend filters in one overlay. Fewer charts, clearer signals.
Instead of switching between 5 different signals on separate charts, you get a single multi-confirmation setup.
See the Invite-Only IndicatorRelated Resources
FAQ
Supertrend Signals FAQ
Stop juggling Supertrend with 4 other charts
Pineify combines Supertrend, RSI, MACD, and Supertrend into one invite-only indicator. One click setup.
Try Pineify Free