Skip to main content

Prerequisites

Everything you need before writing your first MZpack indicator or strategy.

Software

RequirementVersionNotes
NinjaTrader 88.0.27 or laterv8.1.6 required for C# 13
.NET Framework4.8Included with Windows 10/11
Visual Studio2022 (any edition)Community edition is free; optional if you use the NinjaTrader built-in editor

IDE Choice

You can write NinjaScript code in two ways:

IDEBest For
NinjaTrader built-in editorQuick edits, single-file strategies, no project setup needed
Visual Studio 2022Multi-file projects, IntelliSense, debugging, refactoring

The built-in editor compiles code automatically when you save. Visual Studio gives you full IDE features but requires a project referencing NinjaTrader and MZpack assemblies — see Project Setup.

MZpack License

The API requires one of the following license editions:

EditionAPI Access
MZpack Strategies w/ DivergenceFull strategy pipeline + all indicator interfaces
MZpack Indicators & Strategies w/ DivergenceFull strategy pipeline + all indicator interfaces

The FREE and Indicators-only editions do not include strategy API access.

Required Knowledge

TopicWhy
C#All MZpack code is C#. Familiarity with classes, interfaces, generics, and events is expected
NinjaScriptMZpack strategies extend NinjaTrader.NinjaScript.Strategies.Strategy. Understanding State lifecycle, OnStateChange, OnBarUpdate, data series, and order methods is essential
Order flow conceptsFootprint, volume profile, delta, DOM — the data the API exposes. See the MZpack Indicators documentation
tip

If you are new to NinjaScript, start with the NinjaTrader 8 Help Guide — particularly the Strategy and Indicator development sections.

Verify Your Environment

Before proceeding to Project Setup, confirm:

  1. NinjaTrader 8 launches and connects to a data feed (live or Sim101)
  2. MZpack Strategies/API is installed — verify that MZpackStrategies appears in the Strategies dialog
  3. Your license is active — add any MZpack strategy to a chart and confirm it loads without a license error
  4. Visual Studio 2022 is installed (if you plan to use it instead of the built-in editor)