The Supertrend Strategy: Following the Trend Line

How the Supertrend indicator works: the ATR bands, the trend flip entry, stops and trailing exits, and live paper-trading results on Bitcoin and gold.

Bitcoin 1-hour candlestick chart with the Supertrend line in green and red and arrows where the trend flipped
Real recent price data. Arrows mark where this strategy's entry rule fired.
Update, 12 October 2026: the bots that traded this strategy were retired after a six-month test showed they lost money after trading costs. This guide stays up as education, and their full records remain public. See the test.

Supertrend is one of the most popular trend-following indicators. It's simple to read: a line that sits below price when the trend is up and above it when the trend is down. When price closes through the line, the trend is said to have flipped. This guide covers how it's calculated and how our bot trades it.

How Supertrend works

Supertrend starts from the Average True Range (ATR), the average size of a candle. For every candle it builds two bands around the midpoint of the high and low:

  • Upper band: midpoint + multiplier × ATR
  • Lower band: midpoint − multiplier × ATR

The bands only tighten in the trend's direction, never loosen, so the line ratchets towards price like a trailing stop. Our settings are the common ones: ATR period 10, multiplier 3.

The trend flip

In an uptrend, the line is the lower band and sits under price. If a candle closes below it, the trend flips to down, and the line jumps to the upper band above price. The reverse happens when price closes above the line in a downtrend. Each flip is the signal.

The entry rules

  • Long: a 1-hour candle closes above the Supertrend line and the trend flips to up.
  • Short: a 1-hour candle closes below the line and the trend flips to down.

The strategy is always reading the trend, but it only opens a trade on the flip itself. Our bot uses its own ATR-based stop-loss, take-profit and trailing stop instead of waiting for the opposite flip.

Exits

  • Stop-loss: 2 × ATR(14) from entry.
  • Take-profit: 4 × ATR(14) from entry.
  • Trailing stop: once the trade is 2 × ATR in profit, the stop follows the best price at 1.5 × ATR and only ever moves in the trade's favour.

ATR (Average True Range) measures how far price normally moves per candle, so every stop and target adapts to current volatility. That keeps risk comparable between Bitcoin and gold, and between quiet and busy markets.

A worked example

Gold has been falling, so the Supertrend line sits above price at 4,200. An hourly candle rallies and closes at 4,206, above the line. The trend flips to up, and the line drops to the lower band at about 4,170. The bot buys at 4,206. With ATR(14) at 6, the stop is 12 below at 4,194 and the target is 24 above at 4,230.

The multiplier trade-off

  • Small multiplier (1–2): reacts quickly and flips often, with more false signals.
  • Large multiplier (4+): flips rarely and catches only big trends, but enters late.
  • 3 is the common middle ground, and what our bot uses.

When it struggles

In a sideways market, price keeps poking through the line in both directions, producing a string of small losses called whipsaws. Trend strategies accept that cost, because a few big trends are meant to pay for all of them.

Common mistakes

  • Optimising the multiplier to fit past data.
  • Trading it in obvious ranges where there is no trend to follow.
  • Treating the line as a guarantee. It follows the trend; it doesn't predict it.

How our bot trades it live

We run these exact rules on BTC/USD and XAU/USD (gold) using 1-hour candles, each with a virtual $10,000 account. Gold only trades during regular gold market hours. Every entry, stop change and exit is logged the minute it happens. Every trade shown is a live paper trade, never a backtest, and none is edited or deleted. The live numbers are below.

Frequently asked questions

What is the Supertrend indicator?

Supertrend is a trend-following indicator that plots a line based on ATR, below price in an uptrend and above it in a downtrend, flipping when price closes through it.

What are the best Supertrend settings?

The most common are ATR period 10 with a multiplier of 3. Smaller values flip more often; larger ones flip less. Our bot uses 10 and 3.

Is Supertrend good for day trading?

It works on any timeframe, but shorter ones produce many more false flips. Our bot uses 1-hour candles.

Does Supertrend repaint?

No. Once a candle closes, its Supertrend value is fixed. Our bot only acts on closed candles.

Live results

Real paper-trading results from BTC Supertrend and Gold Supertrend, updated every minute. Every result here is a live paper trade, never a backtest.

These are simulated paper trades with a virtual $10,000 account per strategy. They don't include spreads or slippage, and past performance does not guarantee future results. This guide is education, not investment advice. Full disclaimer.

More strategy guides