TradingView → NinjaTrader 7 & 8

Send TradingView Alerts to NinjaTrader
Automatically

Trading Router turns every TradingView alert into a live NinjaTrader order in under 1 second. No NinjaScript, no copy-paste, no missed signals — and unlike most bridges, NinjaTrader 7 is supported too.

No credit card required  ·  NinjaTrader 7 and NinjaTrader 8 both supported

How it works

How a TradingView signal reaches NinjaTrader

TradingView and NinjaTrader have no native link. Trading Router sits between them: the moment your Pine Script strategy or indicator fires, the signal travels TradingView → Trading Router server → your NinjaTrader platform — end to end in under a second.

Step 01
TradingView fires a webhook alert
Your indicator or strategy condition is met. TradingView posts the alert message — the trade signal — to your Trading Router webhook URL.
Step 02
Trading Router routes the signal
Our server parses the alert and relays the instruction to the TradingRouter strategy on your NinjaTrader platform within 1 second, 24/7.
Step 03
NinjaTrader executes the trade
The TradingRouter NinjaScript strategy receives the signal and submits the order to your connected broker instantly.
Setup guide

Connect TradingView to NinjaTrader 8 — Quick Start

Six steps from zero to your first automated NinjaTrader trade. Full walkthrough with screenshots in the NinjaTrader 8 setup docs — or the NinjaTrader 7 guide if you are on the older platform.

1
Register & get your token
Create a Trading Router account. Copy your Client Token from the dashboard.
2
Import the strategy
Download the NinjaTrader strategy, then in NinjaTrader 8 use Tools → Import → NinjaScript Add-On…
3
Connect to a broker
A strategy will not start without a live connection. Use Connections → Configure, or the Simulated Data Feed for testing.
4
List your symbols
Create TradingRouter/symbols.txt in your NinjaTrader documents folder and list every symbol you want to trade.
5
Load strategy on a chart
Open a 1-day chart, right-click → Strategies, add TradingRouter, paste your token and tick Enabled.
6
Create TradingView alert
In TradingView, set the webhook URL and write the NinjaTrader alert message.

Read the full NinjaTrader 8 setup guide →

Alert syntax

What a NinjaTrader alert message looks like

Every NinjaTrader message carries your master token plus an n_signal field. Apart from token, all NinjaTrader fields use the n_ prefix — that is what keeps them separate from the MetaTrader fields.

token=yourmastertoken, n_signal=buy, n_symbol=EURUSD, n_qty=1 token=yourmastertoken, n_signal=sell, n_symbol=EURUSD, n_qty=2, n_sl_pips=100 token=yourmastertoken, n_signal=closelong, n_symbol=EURUSD

Because the prefixes do not collide, one alert can drive both platforms at once — MetaTrader and NinjaTrader from a single webhook message:

token=yourmastertoken, signal=buy, symbol=EURUSD, risk_lots=0.1, n_signal=buy, n_symbol=EURUSD, n_qty=1

Full NinjaTrader syntax reference →

Features

Everything you need for TradingView–NinjaTrader automation

⚡ Under 1-second latency
From TradingView alert to submitted NinjaTrader order in under 1 second — around the clock, every trading day.
🕹️ NinjaTrader 7 and 8
A dedicated strategy build for each platform version. If you are still on NinjaTrader 7, you are not locked out.
🔗 One alert, both platforms
Drive NinjaTrader and MetaTrader 4/5 from the same webhook message — one round trip instead of two.
🛡️ Stop loss in pips or percent
Attach protection at entry with n_sl_pips or n_sl_pct, straight from the alert message.
⏸️ Remote halt & resume
Send eaoff to stop processing signals and eaon to resume — useful when you want the strategy idle without unloading it.
🧹 Close-all commands
Flatten positions and cancel pending orders across symbols with closeall, or closealleaoff to flatten and halt in one move.
📋 Symbol whitelist
The symbols.txt file is an explicit allow-list — nothing trades unless you have listed it, including broker prefixes.
🔑 No NinjaScript required
Import the pre-built add-on, paste your token, done. No C# and no compiling.
FAQ

TradingView to NinjaTrader — Common Questions

Can TradingView send alerts directly to NinjaTrader?
Not on its own — the two platforms have no native connection. Trading Router gives you a webhook URL: when your alert fires, TradingView posts the message to that URL and our server relays the instruction to the TradingRouter strategy running in NinjaTrader, which places the order in under 1 second.
Does Trading Router support NinjaTrader 7 as well as NinjaTrader 8?
Yes — both, each with its own strategy build and setup guide (NT7, NT8). Most competing bridges support NinjaTrader 8 only.
Do I need to write NinjaScript or C#?
No. You import a pre-built NinjaScript strategy add-on, paste your Client Token into the strategy inputs, and control every trade from the TradingView alert message. No programming and no compiling.
Can one TradingView alert trade NinjaTrader and MetaTrader at the same time?
Yes. Put both field sets in the same message — MetaTrader uses signal/symbol/risk_lots, NinjaTrader uses n_signal/n_symbol/n_qty. One message reaches the server faster than two separate alerts.
Why does my strategy not show "Strategy is active"?
Three usual causes: NinjaTrader is not connected to a broker, the strategy was not ticked Enabled, or the chart is not a 1-day chart. If you see "ES0002: Cannot start script! Reason: cannot Register", check that your Client Token is correct and that your service is not stopped. Full checklist in the setup guide.
Why is nothing happening for one of my symbols?
A symbol only trades if it is listed in symbols.txt, and the name must match your NinjaTrader symbol exactly — including any broker prefix such as $EURUSD. The strategy prints the path it is reading and warns in the Log if the file is missing.
Is there a free trial?
Yes — 7 days free, no credit card required, with full access to every feature including unlimited TradingView to NinjaTrader signal routing.

Ready to automate TradingView to NinjaTrader?

Start your free 7-day trial — no credit card required, NinjaTrader 7 and 8 both supported.

Also available: TradingView to MT4  ·  TradingView to MT5