NQ · LIVE ENGINE Algomyth
Tools

How to import and run a NinjaScript strategy in NinjaTrader 8

OCT 7, 2026 · 8 MIN READ

A NinjaScript strategy usually arrives as a single file with a .zip extension, and it is tempting to unzip it. Do not. NinjaTrader 8 wants that zip whole, and the whole process, from that file to a strategy running on a live chart, is about fifteen minutes if you do the steps in the right order. Most of the trouble beginners hit comes from doing them in the wrong one.

This is the full sequence: import, compile, add to a chart, run in simulation, and only then go live. Here is each step, plus the specific gotchas that send people to the support form. If you are newer to the whole idea, the automated trading guide is the wider map this fits into.

What you need before you start

Three things have to be in place, or the later steps will not behave.

  • NinjaTrader 8, connected to data. Not NinjaTrader 7, which uses a different, incompatible file format. You also need a data connection, live or a free simulated feed, so the platform has prices to work with. The platform itself is covered in NinjaTrader 8, explained.
  • The instrument and chart. The the system on this site each want their own. Loading a strategy on the wrong instrument or timeframe is the single most common reason it "does nothing."
  • Enough history. Load at least 15 trading days of data on the chart. A strategy that references recent bars needs those bars to exist, and a chart showing only today will make it sit there quietly doing nothing.
The one thing to remember

Import the .zip whole, never unzipped, and always run in simulation before you connect real money. Every other mistake in this process is recoverable. Skipping the simulation step is the one that costs cash.

Step 1: import the file

In NinjaTrader, open the Control Center, then choose Tools > Import > NinjaScript Add-On. Point it at the .zip file exactly as you received it. NinjaTrader unpacks and installs the contents itself. This is why you leave the zip alone: the importer expects the original archive, not a folder of loose files you extracted by hand.

If the import succeeds you get a short confirmation. If it fails, the message almost always names the reason, and it is almost always either a NinjaTrader 7 file or a zip that someone already opened and re-compressed differently.

Step 2: let it compile

NinjaScript is C# code, and NinjaTrader compiles it on import. Usually this happens automatically and you see nothing but success. If you ever edit the code, or if compilation does not trigger, open the NinjaScript Editor and press F5 to compile everything. Watch the Errors tab at the bottom. A green, empty Errors tab means you are clear. Red entries mean the strategy is not usable until they are resolved, and a strategy that failed to compile will simply not appear in the strategy list later, which fools people into thinking the import itself failed.

Step 3: add it to a chart

Open a chart of the right instrument and timeframe for the strategy you are installing, MNQ on 1 minute for the Algomyth engine. Right-click the chart, choose Strategies, find the strategy in the list, and add it. A parameters panel appears. Leave the defaults unless you have a specific reason and the documentation to back it up. Changing inputs you do not understand is a fast way to turn a tested strategy into an untested one.

At the top of that same panel is the setting that matters most: Enabled. Set to false, the strategy is loaded but inert, plotting and calculating without sending a single order. That is exactly where you want it to begin.

Step 4: run it in simulation first, always

Before any real order, run the strategy on a simulated (Sim101) account. Connect to a sim data feed or use the playback connection, enable the strategy, and watch it operate for several sessions. You are checking that it places orders when you expect, that the stop and target appear in the market, and that it flattens when it should. This costs nothing and tells you almost everything.

You can also point the strategy at the Strategy Analyzer to see its historical result over a date range you choose. That is how you reproduce a published backtest yourself rather than take a screenshot on trust. The numbers behind the system, and how to read them, live on the performance page.

Not sure the whole thing is for you yet?

See exactly how the system enters, exits and sizes before you install anything, and what a sensible first month looks like.

Step 5: going live

When the strategy has behaved in simulation long enough that nothing surprises you, switch the account on the strategy from Sim101 to your live or funded account and enable it. Two things change the moment you do. First, real fills are not simulated fills: you will meet actual slippage and the occasional missed price. Second, your funded-account rules are now live, so a stop that is fine in sim can still breach a trailing drawdown limit in reality. Know those rules cold before you flip the switch.

What changes from sim to liveSimulationLive or funded
FillsAssumed, usually instantReal, with slippage and gaps
Cost of a mistakeNone, it is practiceReal money and account rules
Drawdown limitsNot enforcedEnforced, can close the account
Data feedSim or delayed is fineReal-time subscription required
Your nervesCalm, nothing at stakeThe real variable most people forget

The beginner gotchas, in one place

Almost every "it isn't working" ticket traces back to one of these.

Unzipped the fileThe importer wants the original .zip. Extract it yourself and the import fails or installs nothing.
Wrong instrument or timeframeLoaded on the wrong symbol or interval, the strategy simply sits there. Match the symbol and interval it was built for.
Too little historyA chart with only today's bars starves a strategy that needs recent data. Load at least 15 days.
Enabled left offA strategy added but not set to Enabled will never send an order. Check that toggle first.

Do you need a VPS to run it?

Only if you want the strategy to keep trading when your own computer is asleep or offline. NinjaTrader has to be running and connected for an automated strategy to work, so if you would rather not leave a machine on all day, a low-cost virtual private server handles it. Whether that is worth it for a once-a-day system is a real question, and it is weighed in do you need a VPS for automated trading. If you are mapping out your first month end to end, getting started in 30 days lays out a sensible pace.

Frequently asked questions

Do I need to unzip the NinjaScript file first?

No, and you should not. NinjaTrader 8 expects the original .zip archive and unpacks it during import through Tools, then Import, then NinjaScript Add-On. If you extract it yourself and try to import the loose files, the import usually fails or installs nothing usable. Leave the file exactly as you received it and let the platform do the unpacking.

Why doesn't my strategy appear in the list?

The most common reason is that it failed to compile, so it never became available. Open the NinjaScript Editor, press F5 to compile, and check the Errors tab: any red entries must be cleared before the strategy shows up. The other frequent cause is importing a NinjaTrader 7 file into NinjaTrader 8, which are not compatible. Confirm the file is built for version 8.

What instrument and chart should I use?

Using a different instrument or timeframe is the usual reason a correctly installed strategy appears to do nothing, because it is waiting for conditions it will never see on the wrong chart. Match the instrument and timeframe the strategy was built and tested for.

Should I run it in simulation or go straight to live?

Always simulation first. Run the strategy on a Sim101 account for several sessions and confirm it enters when expected, places its stop and target, and flattens correctly, all at no cost. Only when nothing about its behavior surprises you should you switch it to a live or funded account. Skipping this step is the one mistake in the whole process that costs real money rather than time.

Do I have to leave my computer on for it to trade?

Yes. An automated NinjaScript strategy only runs while NinjaTrader is open and connected to data, so if your machine sleeps or loses its connection, the strategy stops. Traders who do not want to keep a computer running all day use a virtual private server to host the platform. For a system that trades once a day, whether that is worth the monthly cost is a judgment call worth reading up on before you commit.

In short: to import a NinjaScript strategy, keep the .zip whole and use Tools, then Import, then NinjaScript Add-On, let it compile with no errors, add it to the right chart (MNQ on a 1-minute chart with at least 15 days of history), and leave Enabled off until you have watched it work in simulation. Only then switch to a live or funded account, where real fills and drawdown rules apply. Do the steps in that order and the fifteen-minute version is the one you get.
Sources and further reading
  • NinjaTrader 8 Help Guide, "Import" (NinjaScript Add-Ons).
  • NinjaTrader 8 Help Guide, "Strategies" and "Strategy Analyzer."
  • CME Group, "Micro E-mini Nasdaq-100 (MNQ)" contract specifications.

Watch the engine, not the promises

Everything we write comes back to one idea: verify, then decide. The live terminal exists for exactly that.

Unlock Algomyth Live