Skip to main content
Cart Log in Sign up
Indicator

Supertrend: ATR-based trend line

Draws the Supertrend line on a NinjaTrader 8 chart with your ATR period and multiplier, changes colour with direction and exposes the trend to strategies.

Platform

License

Price

≈

Version

You own this product. Go to My products
Get the demo

  • Automatic, instant delivery once payment confirms
  • Free updates for every future version
  • 12 months of technical support
  • Refunds under a transparent policy
  • Pay with USDT, BTC, ETH and more
  • Free: no payment, download it right now

Risk warning: Trading financial markets carries a risk of losing capital, and past performance does not guarantee future results. Terms & conditions

Product type
Indicator
Platforms
NT
Market / symbol
Gold, Indices, Crypto, Oil
Experience level
Beginner
Delivery
File download from your dashboard
Last update
November 30, 2026
Broker
Any broker

Overview

NinjaTrader 8 does not ship with a Supertrend indicator. This version implements the well-known calculation: a line that trails below price in an uptrend and above it in a downtrend, at a distance taken from ATR.

The line changes colour with the trend, and the price bars can follow it if you like. Besides the line itself there is a Trend series, +1 in an uptrend and -1 in a downtrend, which keeps strategy conditions simple.

Supertrend is a trend-following tool. In a ranging market it flips back and forth; that is the nature of the calculation, not a fault of this version.

  • Adjustable ATR period and multiplier
  • Line colour follows the trend direction
  • Optional bar colouring
  • A Trend series for strategies and the Market Analyzer

Made by

This tool is written by the TradeKit team. The source code is open and included in the download. It is free to use.

Strategy logic

Bands

  • The midpoint of each bar is (High + Low) / 2.
  • Upper band: midpoint plus Multiplier × ATR. Lower band: midpoint minus the same amount.
  • The lower band only rises and the upper band only falls, unless the previous bar closed through it.

Trend direction

  • In an uptrend, a close below the lower band turns the trend down.
  • In a downtrend, a close above the upper band turns the trend up.
  • The Supertrend line is the lower band in an uptrend and the upper band in a downtrend.

Outputs

  • A plot named Supertrend: the line value.
  • A Trend series: +1 or -1.

Specifications

Requirements

  • NinjaTrader 8
  • Works on any chart type and timeframe
  • Ignore the first few dozen bars of the chart, where ATR has not settled yet
Platforms
NT
Delivery
Use case
Swing، Trend following
Market
Gold، Indices، Crypto، Oil
Experience level
Beginner

Compatible brokers

Which brokers this product works with, and which it works best with.

Works with every broker

No broker restriction: it works with any broker that offers the product's platform.

The broker choice is yours; TradeKit is not a broker. Check account terms before depositing. All brokers

Input parameters

Input parameters
ParameterDefaultDescription
AtrPeriodATR period 10 ATR period
MultiplierATR multiplier for the distance of the line from price 3.0 ATR multiplier for the distance of the line from price
ColorBarsColour the price bars by trend direction false Colour the price bars by trend direction
UpBrushLine colour while the trend is up LimeGreen Line colour while the trend is up
DownBrushLine colour while the trend is down Red Line colour while the trend is down

Install guide

  1. Unzip the download. It contains TradeKitSupertrend.cs and a short readme.
  2. Copy TradeKitSupertrend.cs into Documents\NinjaTrader 8\bin\Custom\Indicators.
  3. In NinjaTrader open New › NinjaScript Editor and press F5 to compile.
  4. Right-click a chart, choose Indicators and add TradeKitSupertrend from the list.

F5 compiles every script in the Custom folder together. If another script has an error, this indicator will not appear in the list until that error is fixed.

Changelog

  1. v1.0.0 NT New November 30, 2026
    • Published on TradeKit

Buyer reviews

No reviews yet.

Only verified buyers can review. Reviews are moderated before publishing.

Only verified buyers can review. Reviews are moderated before publishing.

Sign in to write a review

FAQ

Does the line change after a bar closes?
No. With the default setting (Calculate on bar close) each bar’s value is fixed once it closes. If you set Calculate to On each tick, the current bar’s value moves until the bar closes and the direction may flip and flip back inside the bar.
Do the numbers match Supertrend on other platforms?
The formula is the same, but NinjaTrader smooths ATR in its own way and data differs between feeds. Small differences are normal.
Which settings are best?
There is no best setting for every market. 10 and 3 are the most common. A smaller multiplier keeps the line closer to price and flips more often; a larger one reacts later.
How do I read the direction in a strategy?
Use <code>TradeKitSupertrend(10, 3, false).Trend[0]</code>. Above zero means an uptrend, below zero a downtrend.

Related products

More Indicators and tools from the same family

Compare Compare now