Free Supertrend indicator for NinjaTrader 8, with TradingView's formula

The Supertrend is a line that trails price at a distance of several ATRs: it sits below price while the trend is up and flips above when price closes on the other side. Many traders use it as a trend filter or as a trailing stop.

NinjaTrader doesn't ship one, and the ones out there don't always match TradingView's. This one uses the same formula as TradingView's built-in Supertrend (ta.supertrend): we compared it bar by bar on NQ and it gives the same direction on every bar and the same value. It adds what people ask for most: fill, arrows and alerts on bar close, colored bars, a higher timeframe without repainting and a second, slower Supertrend.

  • 100% free
  • Built by El Trader Financiado for the community

Version 1.1 beta · NinjaTrader 8 · .zip to import · also in the pack of all 16 · updated November 3, 2026

Install one language only: if you switch between English and Spanish, delete the ElTraderFinanciado folder first (Documents\NinjaTrader 8\bin\Custom\Indicators).

Using NinjaTrader in Spanish? Versión en español

Finding them useful? Support us with code ETFPROMO

If you're buying a prop firm evaluation, use our code: you pay less and it helps us keep building free tools.

Affiliate links: we earn a commission if you buy through them.See all discounts →
Supertrend with fill and flip labels on a 5-minute NQ chart1 / 3
On the chart

What the indicator draws

  • A green line below price in an uptrend and a red one above it in a downtrend, with a gap at every flip and a trend-colored fill.
  • Same defaults as TradingView: hl2 source, Wilder ATR, period 10 and multiplier 3. Optional classic formula from KivancOzbilgic's script, which sometimes flips one bar later.
  • An arrow and a "Buy" or "Sell" label on the flip bar and an optional alert, always on the closed bar: no repainting.
  • Multi-timeframe: the 15-minute Supertrend on a 1-minute chart, using the last closed bar of the higher timeframe.
  • Optional double Supertrend (fast + slow, 14 and 6) with signals only in the slow one's direction.
  • Plots for strategies and the Strategy Builder: Line, Trend (+1 / -1) and Signal (+1 buy, -1 sell, 0 none).
The concept

How the Supertrend is calculated

It starts from the bar's midpoint (hl2) and adds and subtracts the multiplier times the ATR: with a 10-point ATR and a multiplier of 3, the bands sit 30 points away. The lower band can only rise while the trend is up and the upper band can only fall in a downtrend. When price closes beyond the active band, the trend flips and the line jumps to the other side.

On the chart

What each screenshot shows

  1. 01

    Line, fill and flips

    Green below price while the trend is up and red above it when it's down, with a trend-colored fill. The arrow and label appear on the flip bar, once closed: it doesn't repaint.

  2. 02

    Another timeframe

    The 15-minute Supertrend on your 1-minute chart, using the last closed 15-minute bar: that's why it moves in steps and doesn't change mid-bar.

  3. 03

    Double Supertrend

    A fast and a slow Supertrend at once. The fast one's signals only show in the slow one's direction, so you don't trade against the bigger trend.

Command Center

For NinjaTrader 8 · Free

Trade Copier · Risk Manager · Account Rules · Trading Journal · Track Record · Free Indicators · Prop Firm Discounts

  • Trade Copier: mirrors what you trade on the master account to its followers
  • Risk Manager: tries to close and lock the account before you hit your firm's limit
  • Account Rules: what's left until the drawdown, the daily limit and the profit target
  • Trading Journal: your stats, without logging anything by hand
  • Track Record: spent on evaluations vs. collected in payouts
  • Free Indicators: the ones on this page, without leaving NinjaTrader
  • Prop Firm Discounts: every firm's codes, at hand
How to use it

How to trade the Supertrend

A summary of the most common uses. Everything is set in the indicator properties.

  • Trend filter

    Only buy with the line green and only sell with it red. Paired with your usual entry, it keeps you from trading against the main move.

  • Trailing stop

    With the source set to Close it becomes a pure ATR trailing stop: the stop sits on the line and follows it until it flips.

  • Higher timeframe as a filter

    On a 1-minute chart, the 15-minute Supertrend shows the bigger direction without switching charts. It updates one bar after the 15-minute bar closes, which is why the line looks stepped.

  • Double Supertrend

    A slow one (14, 6) sets the trend and the fast one (10, 3) gives the signals: with "Signals only with the slow one", arrows and alerts only fire in the slow one's direction.

What the evidence says

The Supertrend is a trend follower: it works in clean trends and gives lots of false flips in a range. There are no public studies showing an edge on its own; use it as a filter or a stop, not as a complete system.

Settings

Key settings

SettingDefaultWhat it does
ATR period / Multiplier10 / 3TradingView's defaults. A higher multiplier means fewer flips.
SourceHL2Close turns it into an ATR trailing stop.
ATR typeWilderSimpleAverage = "Change ATR Calculation Method" unchecked in Kivanc's script.
Flip formulaTradingViewKivancClassic compares with the previous bar's band.
TimeframeChartMinutes or Seconds + "Timeframe value" (15 by default) for multi-timeframe.
Double SupertrendOffSlow 14 / 6, signals only with the slow one.
Arrows, text and alert on every flipOn / On / OffOn the close of the flip bar.
Fill / Color barsOn / OffTrend-colored shade between the line and price; bars painted with the trend color.
Takes 2 minutes

How to install ETFSupertrend in NinjaTrader 8

  1. 1

    Download the .zip and don't unzip it.

  2. 2

    In NinjaTrader 8, from the Control Center: Tools → Import → NinjaScript Add-On… and pick the .zip.

  3. 3

    Accept and wait for it to compile. If NinjaTrader asks whether to replace a file (for example ETFFirma.cs, which comes with all our downloads), click Yes: with No it ends up duplicated and won't compile.

  4. 4

    Indicators: on the chart, right-click → Indicators… → ElTraderFinanciado folder. Risk-Reward: right-click → Drawing Tools. Risk Guardian: Control Center → New.

Questions

Frequently asked questions

Does it match TradingView?

Yes. We compared it bar by bar with TradingView's built-in Supertrend on 30-minute NQ (999 bars): same direction on every bar and the same value once the ATR is past its first bars. To compare, use the same settings and the same session (ETH on both): different sessions mean different bars and a different ATR.

Does it repaint?

No. Flips, arrows and alerts are decided on the closed bar. In multi-timeframe mode every chart bar takes the value of the last closed bar of the higher timeframe.

Can I use it in the Strategy Builder?

Yes. It has the Line, Trend (+1 up, -1 down) and Signal (+1 buy, -1 sell, 0 none) plots, plus the slow ones with the double Supertrend.

Pair it with

More free indicators

See all 16 indicators

The indicators describe what price has done; they don't predict what it will do and they are not investment advice. The risk management tools are an aid: they don't replace your firm's rules or your broker's limits. Only trade futures with money you can afford to lose.