NinjaTrader Automated Trading: Four Ways to Do It
NinjaTrader gives a futures trader four distinct ways to automate. You can describe a strategy in plain English and let the platform write it, write the C# yourself, import one a vendor sells, or skip NinjaScript and route TradingView alerts into a NinjaTrader account. Each route asks for a different mix of skill, hardware and trust in someone else’s code.
What Every NinjaScript Route Needs
NinjaScript is NinjaTrader’s C# framework, and NinjaTrader’s developer documentation says it “runs only in the NinjaTrader 8 desktop application (Windows).” The help guide lists Windows 11 or Windows Server 2016 or later, 64-bit, as the supported systems, and macOS does not appear on that page.[1][2]
That has a practical consequence. A NinjaScript strategy trades only while the desktop program is open and connected to your account, so a laptop that sleeps at lunch is a strategy that stops at lunch. Traders who cannot leave a machine on rent a Windows server instead, and Trading123’s FAQ, for one, says its AlgoBot runs on your computer or a VPS. Our page on whether you need a VPS explains when that is worth paying for.
Route 1: Strategy Builder, No Code
In the Control Center, open the New menu and choose Strategy Builder. NinjaTrader runs a compile check, then asks whether you want the AI Strategy Builder or the guided Strategy Builder. Both produce a NinjaScript strategy, and NinjaTrader’s help guide says it creates “NinjaScript strategies for automated trading.”[3]
The guided builder has you pick conditions, actions, stops and targets from menus. The AI Strategy Builder takes a plain-English description, asks follow-up questions, compiles the code and runs a backtest in the Strategy Analyzer in the same window. NinjaTrader’s own page warns that “A generated strategy is a starting point, not a finished system” and tells you to review the code and validate the results before trading live. Our guide to building a trading bot with AI covers what that validation should look like.[3]
Route 2: Write NinjaScript Yourself
You write and compile the strategy in the built-in NinjaScript Editor. Nothing limits what you can build, from custom order handling to multiple data series and your own risk logic, and every bug in it is yours to find. If you can already program, the Strategy Builder’s output is a fair way to learn the structure, since you can open its generated code in the editor and read it.[1]
Route 3: Buy a Finished Strategy
Several vendors sell automated strategies as NinjaScript files you import and run. Trading123’s AlgoBot is one, per its own site as checked in November 2026: a fully automated NinjaScript strategy the vendor says is optimized for NQ, sold as a one-time license, and run inside NinjaTrader on your computer or a VPS while the platform is open. Its refund policy says software purchases are not refunded. Aeromir’s Phoenix is another, listed for NQ, MNQ, ES and MES. Our Trading123 AlgoBot comparison goes through one of them in detail.
A bought strategy saves you the build and hands you the vendor’s record instead. Run it in simulation first and read how its results are labeled before you trust any of them.
Route 4: TradingView Alerts Into NinjaTrader
If your strategy lives in TradingView, a bridge can turn its alerts into orders on a NinjaTrader account. There are two designs. A desktop add-on such as CrossTrade’s runs inside NinjaTrader 8, so the platform must stay open. A cloud service such as TradersPost connects to a NinjaTrader brokerage account directly, with nothing running on your machine. Our step-by-step guide to sending TradingView alerts to NinjaTrader 8 covers both, and TradersPost vs CrossTrade compares the two designs bridge by bridge.
How to Run a Strategy Once You Have One
These steps follow NinjaTrader’s help guide on running a NinjaScript strategy, read November 15, 2026.[4]
- Connect first. The help guide says to connect to a live brokerage or market data connection, or use Playback or the Simulated Data Feed, before you start a strategy.
- Open the chart’s Strategies window by right-clicking the chart, using the chart toolbar or pressing Ctrl+S.
- Add the strategy and set its properties, including the Account property, which decides which account receives the orders. Pick a simulation account for the first weeks.
- Set Enabled to True. A strategy with Enabled set to False sits on the chart and does nothing.
- Watch it in the Control Center’s Strategies tab, which lists running and disabled strategies.
The help guide is blunt about step 3: on a live account, “the orders it generates are live.” Changing the account from simulation to live is the moment real money is involved, so make it a deliberate decision after weeks of simulated trades you have checked against the chart.
Set Account-Level Limits Too
A strategy’s own stop logic protects one trade. A NinjaTrader brokerage account also has Risk Settings in the NinjaTrader Dashboard (User Profile, then Settings, the Accounts tab, then Risk Settings), including a Daily Loss Limit that closes positions and locks trading when it is reached. NinjaTrader’s article says those settings are enforced on Desktop, Web, Mobile, Tradovate and TradingView alike, so they catch a runaway strategy whichever route placed the order. The Tradovate version works the same way, and our Tradovate daily loss limit page walks through it.[5]
The Four Routes Side by Side
| Route | You supply | Skill needed | Must NinjaTrader stay open |
|---|---|---|---|
| Strategy Builder | The rules and their testing | Following menus, reading a backtest | Yes |
| Your own NinjaScript | The rules and all the code | C# programming | Yes |
| A bought strategy | A license and an account | Setup and monitoring | Yes |
| TradingView alerts through a bridge | A TradingView strategy and a bridge | Pine Script or a strategy you trust | Add-on bridges yes, cloud bridges no |
If you have not picked a platform yet, our NinjaTrader vs Tradovate comparison covers how each one automates.
Where AutoPilot Trader Fits
AutoPilot Trader is not a NinjaScript strategy. It sends its signals from TradingView through TradersPost to the broker, and NinjaTrader is one of the brokers it supports, so nothing has to run inside the desktop platform. It is the wrong choice for a NinjaTrader user who wants to build or tune a NinjaScript strategy, because its rules are fixed. Crypto and stock traders should skip it too. It does run on prop-firm accounts, but we recommend a personally funded cash account, where a normal losing stretch will not trip a firm’s drawdown rule and close the account.
Frequently Asked Questions
Can NinjaTrader trade automatically?
Yes. A NinjaScript strategy places and manages orders inside the NinjaTrader 8 desktop platform once you enable it on a chart. You can build one in Strategy Builder without code, write one in C#, buy one, or route TradingView alerts into a NinjaTrader account through a bridge.
Does NinjaTrader have to stay open for a strategy to trade?
For a NinjaScript strategy, yes, because NinjaScript runs only in the desktop application on Windows. Many traders run it on a VPS for that reason. A cloud bridge that connects to a NinjaTrader brokerage account is the exception, since nothing runs on your machine.
Does NinjaTrader have an AI strategy builder?
Yes. NinjaTrader's AI Strategy Builder turns a plain-English description into a compiled NinjaScript strategy and runs a backtest. NinjaTrader's own help guide calls the result a starting point and says to review the code and validate the results before trading live.
Sources
- NinjaScript Overview, NinjaTrader Developer Docs. Accessed November 2026. ↩︎
- NinjaTrader 8 Help Guide: Minimum System Requirements, NinjaTrader. Accessed November 2026. ↩︎
- NinjaTrader 8 Help Guide: Strategy Builder, NinjaTrader. Accessed November 2026. ↩︎
- NinjaTrader 8 Help Guide: Running a NinjaScript Strategy from a Chart, NinjaTrader. Accessed November 2026. ↩︎
- Risk Settings, Tradovate Help Center. Accessed November 2026. ↩︎
