SuperTrend Pine Script Strategy for Futures

SuperTrend is one of TradingView's most-installed indicators because it removes interpretation: one line, one flip, one signal. Our Pine Script wraps that simplicity in a disciplined shell: fixed risk, bar-close entries, and a daily loss input that stops new entries after a rough session.

What makes SuperTrend work for prop firm evals

SuperTrend is an ATR-based trailing indicator. It measures recent volatility with the Average True Range, then plots a band a multiple of that ATR away from price. Whenever a bar closes on the opposite side of the band, the indicator flips — long becomes short, short becomes long. That flip is the entire signal.

For prop firm accounts, that simplicity is an advantage rather than a shortcoming. Most evaluations aren't lost to a bad strategy — they're lost to overtrading: six marginal setups taken in a session when two would have done the job, or a re-entry fired the moment a stop-out no longer qualifies as a real setup. SuperTrend can't do that. There is either a valid long or a valid short, never both, and the script waits for the next flip once a position is closed.

How the strategy handles risk

A raw SuperTrend indicator has no risk controls of its own. Our Pine Script adds four layers on top of the base flip logic:

Fixed Dollar Stop

Stop-loss is coded as a dollar amount per trade, not a raw band level, so risk per trade is known before the signal fires.

Bar-Close Entry Only

Entries trigger on a confirmed bar close, never on intrabar movement — what the backtest shows is what executes live.

Daily Kill Switch

Once cumulative session losses hit a configurable threshold (default 80% of the firm daily limit), no new entries fire for the rest of the day.

RTH Session Filter

An optional Regular Trading Hours filter restricts signals to the cash session, cutting overnight noise and thin-market false flips.

The flip condition itself is generic and easy to reason about — a simplified version looks like this:

Pine Script
//@version=5
strategy("SuperTrend Flip — Illustration", overlay=true,
     calc_on_every_tick=false, process_orders_on_close=true)

atrLen   = input.int(10, "ATR Length")
mult     = input.float(2.5, "ATR Multiplier")
riskUsd  = input.float(150, "Fixed Risk per Trade ($)")

[_, direction] = ta.supertrend(mult, atrLen)
longSignal  = direction < 0 and direction[1] > 0
shortSignal = direction > 0 and direction[1] < 0

if longSignal
    strategy.entry("Long", strategy.long)
if shortSignal
    strategy.entry("Short", strategy.short)

// Dollar-based stop sizing is computed separately from the flip level
// so per-trade risk stays fixed regardless of how wide the ATR band is.

Recommended settings by instrument and timeframe

The default SuperTrend inputs (ATR 10, multiplier 3.0) are tuned for daily charts and need adjusting for the intraday timeframes most prop firm traders actually use. Starting points we recommend:

InstrumentTimeframeATR LengthMultiplierStop Method
MES / ES5-min142.5Fixed $50–$100 per MES contract
MNQ / NQ5-min142.5Fixed $30–$60 per MNQ contract
MES / ES15-min103.0Fixed $75–$150 per MES contract
MNQ / NQ15-min103.0Fixed $50–$100 per MNQ contract

Treat these as starting points to backtest from, not settings to trust blind.

Included in Pro: backtest it, then automate it

The SuperTrend strategy is included in Pro ($69/mo, cancel anytime). Add it to your chart and run it in TradingView's Strategy Tester with the settings above, on the instrument and date range you actually trade, before you put money behind it.

When you're ready to automate, the alerts already carry CrossTrade-ready order messages. Create a TradingView webhook alert (webhooks need a paid TradingView plan), point it at your CrossTrade webhook URL, and CrossTrade places the orders on NinjaTrader 8 or Tradovate. CrossTrade's Account Manager can also hold a daily loss limit, a trailing drawdown, and an end-of-day flatten on each account, separate from the script. On NinjaTrader, those limits run while NinjaTrader and the CrossTrade add-on are running.

Which firms and account sizes fit SuperTrend best

Firm Account Size Why It Fits
Topstep 50k (MES) / 100k (ES) EOD trailing drawdown tolerates the wide intraday swings a SuperTrend flip can produce before it closes profitably — the peak doesn't count against the floor.
MyFundedFutures 50k (MNQ) / 100k (NQ) Static drawdown never moves, so a steady run of SuperTrend flips builds equity without the floor creeping up behind you.
Apex Trader Funding 50k (MNQ) / 150k (NQ) Intraday trailing threshold rewards fixed-target exits that step equity up cleanly instead of trailing out and giving the floor a free ride.
Tradeify (Growth path) 50k (MES/MNQ) EOD trailing drawdown — same benefit as Topstep. No hard daily loss limit lets SuperTrend's wider ATR stops breathe.

SuperTrend vs other strategies — what to expect

SuperTrend is a trend-following strategy. It performs best in sessions with a clear directional bias — the early New York open and the afternoon continuation window — and produces more scratch trades during choppy midday chop. The optional RTH filter defaults to the higher-probability windows and can be widened or narrowed to taste.

Backtest figures

— Win rate
— Average R:R (winners)
— Avg. trades per session
— Max consecutive losses observed

We haven't published Strategy Tester figures for this configuration yet. When we do, they'll show here with their commission and slippage assumptions. Until then, run the backtest yourself on your own instrument and date range.

Common SuperTrend mistakes on prop firm accounts

SuperTrend is easy to add to a chart but frequently misconfigured for a prop firm environment. Three mistakes cause the most silent compliance failures:

  1. Calculating on every tick instead of bar close. The default indicator updates live; a strategy left in that mode fires entries mid-bar, which backtests fine but behaves differently once live. Our script forces bar-close-only evaluation for this reason.
  2. No daily kill switch. A SuperTrend script in a ranging market can produce several whipsaw stop-outs in one session. Without a halt, a choppy Wednesday can approach a daily limit before lunch.
  3. An ATR multiplier that doesn't match the timeframe. Too tight on a 1-minute chart produces dozens of micro-flips; too wide on a 5-minute chart produces almost none. The settings table above gives workable starting ranges per instrument and timeframe.

Reading a signal in the context of prop firm risk

Not every flip is worth taking mid-evaluation — the eval phase carries risk constraints the funded phase doesn't. Higher-probability setups tend to share these traits:

  • The flip fires in the first half of the RTH session, when volume and trend quality are both at their best.
  • Direction agrees with the session's opening bias — a long flip above the opening print and above VWAP carries more weight than one fired into overhead resistance.
  • The daily loss buffer is still mostly intact. The kill switch enforces the hard limit, but good execution means sizing down as that buffer shrinks, not waiting for the switch to trip.
  • No major economic release is due in the next half hour. High-impact prints move price in ways that don't respect a SuperTrend stop; a news blackout filter pauses entries around scheduled events.

Past performance of any strategy configuration does not guarantee future results. All prop firm evaluations carry real risk — size positions to your account's daily loss limit.

Get the SuperTrend strategy in Pro.

Included in Pro ($69/mo) with every other strategy and the full indicator library. Cancel anytime. Every update included.

Frequently asked questions

What is a SuperTrend Pine Script strategy?
SuperTrend is an ATR-based trailing band: it plots a line above or below price and flips sides whenever price closes through it, giving one unambiguous long/short signal per direction change. A Pine Script strategy wraps that flip in bar-close confirmation, a fixed dollar stop, and alert conditions so the signal can be sent to NinjaTrader 8 or Tradovate through CrossTrade instead of traded by hand.
Is SuperTrend good for prop firm evaluations?
Yes. Because SuperTrend only fires on a direction change, it naturally avoids the overtrading that breaches most daily loss limits. Its stop distance scales with ATR, so the same logic can be tuned for a tight MES/MNQ evaluation or a wider ES/NQ account without rebuilding the strategy.
Can I automate a SuperTrend Pine Script?
Yes. The strategy's alert message is already formatted for CrossTrade. Point a TradingView webhook alert at your CrossTrade webhook URL and CrossTrade places the order on NinjaTrader 8 or Tradovate. Webhook alerts need a paid TradingView plan. On a prop firm account, check your firm's current automation rules before connecting a live account.
How do I get the SuperTrend strategy?
It's included in Pro ($69/mo), alongside every other Target Filled strategy and the full indicator library. The ATR length, multiplier, and stop settings are inputs, so the same strategy runs on micro contracts (MES, MNQ) or full-size ones (ES, NQ). Access is invite-only on your TradingView username, granted the moment payment completes.