Setup

How to import a strategy into NinjaTrader

Step-by-step instructions to import, load and enable an automated strategy in NinjaTrader, plus fixes for the most common problems.

How to import a strategy into NinjaTrader: cover illustration

Short answer. To import a strategy into NinjaTrader, open the Control Center, go to Tools, Import, NinjaScript Add-On and select the .zip file without unzipping it. Then open a chart for the instrument and timeframe the strategy needs, right-click, choose Strategies, add it, set the account and size, tick Enabled and click OK. The whole process takes about five minutes.

Installing a strategy in NinjaTrader takes about five minutes. Here's the full process, plus fixes for the problems people hit most.

Before you import

  • NinjaTrader desktop on Windows. NinjaScript strategies run in the desktop platform. On a Mac, use Windows in a virtual machine or a Windows VPS.
  • The strategy file as a .zip. Strategies are shared as NinjaScript archive files. Keep the .zip as it came; NinjaTrader imports the archive itself.
  • A data connection. The strategy needs real-time data for its instrument, so connect before you enable it.
  • A license, if it's a commercial strategy. Paid NinjaScript products are usually licensed to your NinjaTrader login through NinjaTrader's vendor licensing, and won't enable until the license is active.

Import the strategy file

  1. Download the strategy .zip file. Don't unzip it.
  2. Open NinjaTrader and go to Tools → Import → NinjaScript Add-On.
  3. Select the .zip and confirm. Restart NinjaTrader if asked.

Add it to a chart

  1. Open a chart for the instrument and timeframe the strategy is built for.
  2. Right-click the chart and choose Strategies.
  3. Find the strategy in the list and click Add.
  4. Set the account, contract size and any limits.
  5. Tick Enabled and click OK.

FuturesBotLab bots install the same way. Each bot's spec sheet names the chart it needs, for example a 1-minute MNQ or NQ chart for Nasdaq Reload (MNQ · NQ) or a 5-minute MGC or GC chart for Dawn Range (MGC · GC). See all 9 bots; see pricing.

Another way: the Strategies tab

You can also start a strategy without a chart. In the Control Center, open the Strategies tab, right-click and choose New Strategy, pick the strategy, then set its instrument, data series, account and settings in the same window. Starting it from a chart is easier to check visually, because you see its trades on the bars; starting it from the Strategies tab keeps your workspace lighter. Either way, the Strategies tab lists every running strategy and its state.

Common problems

The strategy shows yellow and won't trade

It's waiting for your account position to match the strategy position. Flatten the account or change Start behavior to "Immediately submit".

Import failed: "contains programming errors"

Another add-on on your machine has a compile error. Open the NinjaScript Editor, press F5 and fix or remove the file it points to.

Nothing happens all session

Check that the chart timeframe and instrument match what the strategy expects, that you're connected to data, and that the session times are in your time zone.

Update or remove a strategy

To update, disable the strategy everywhere it runs, then import the new .zip the same way. To remove a protected (compiled) strategy, disable it first, then go to Tools → Remove NinjaScript Assembly and choose its assembly. NinjaTrader may ask you to restart afterwards.

Keep NinjaTrader connected

A strategy only trades while NinjaTrader is open and connected to data. If you want it running while your computer is off, run NinjaTrader on a VPS.

If the strategy doesn't appear in the Strategies list after the import, work through strategy not showing up: how to fix it.

Free tools: tick value calculator · position size calculator · futures market hours · daily loss limit calculator.

Related guides

Bots mentioned in this guide

Futures trading involves substantial risk of loss and is not suitable for every investor. Past or hypothetical results don't guarantee future results. This guide is educational, not investment advice. Risk disclosure.

FAQ

Common questions

Where is the import option in NinjaTrader?

In the Control Center, go to Tools, then Import, then NinjaScript Add-On, and select the strategy's .zip file.

Do I need to unzip a NinjaTrader strategy before importing it?

No. Import the .zip as it came. NinjaTrader reads the archive itself, and unzipping it first is a common reason an import fails.

Why is my NinjaTrader strategy yellow?

A yellow strategy is enabled but waiting for the account position to match the strategy's position, usually because the account already holds a position. It turns green once they match, or right away with a start behavior that doesn't wait.

Can I run a strategy without a chart?

Yes. In the Control Center's Strategies tab, right-click, choose New Strategy and set its instrument, data series and account there.

Does a strategy keep running if I close NinjaTrader?

No. It only runs while NinjaTrader is open and connected. To keep it running while your own computer is off, run NinjaTrader on a Windows VPS.

How do I remove an imported strategy?

Disable it everywhere it runs, then for a protected (compiled) strategy go to Tools, then Remove NinjaScript Assembly, and choose its assembly.

Membership details

Let the bot follow the rules, so you don't have to.

Every bot, every update, one membership.