Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Convert strategies built in NinjaTrader version 8.0 to version 8.1.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Convert strategies built in NinjaTrader version 8.0 to version 8.1.

    Just upgraded to NinjaTrader version 8.1.1.6 64-bit.
    Tried to load a strategy that I built in in NinjaScript 8.0 (1 of about 30 that I have developed) and it will not import due to being built from an older, incompatible version.

    What is the fix for this?
    I seriously hope I do not need to rebuild all of these.

    Also, where are the Custom built Strategies now being saved? It used to be (install directory)\NinjaTrader 8\bin\custom\strategies

    Thanks.
    Last edited by northstardaytrading; 05-22-2023, 06:39 PM.

    #2
    The message about "older, incompatible version" is for 7.0 indicators and strategies, not 8.0.
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      Hello northstardaytrading,

      Thanks for your post.

      QuantKey_Bruce is correct. The error message about a NinjaScript being unable to import because it is an older, incompatible version occurs when you try to import a NinjaTrader 7 NinjaScript into NinjaTrader 8.

      Note that there are no code-breaking changes between NinjaTrader 8.0 and NinjaTrader 8.1 so any script created on NinjaTrader 8.0 should import onto NinjaTrader 8.1.

      NinjaScript strategy files are located in the Documents\NinjaTrader 8\bin\Custom\Strategies folder.

      You could clarify if the script was created for NinjaTrader 7 by opening the .zip file of the NinjaScript, opening the info.xml file in a text editor, and noting the line that says 'Version'.

      If the script was created for NinjaTrader 7, you must convert the script to be compatible with NinjaTrader 8. Or, reach out to the developer of the NinjaScript to see if they have a NinjaTrader 8 compatible script.

      Unfortunately, due to the code-breaking changes to the structure of NinjaScripts as well as changes to the NinjaScript properties and methods, no scripts created for NinjaTrader 7 will import into NinjaTrader 8.

      If this is a script you have created that you would like to convert to NinjaTrader 8, my advice is to start by creating as much of the script as possible in NinjaTrader 8 using the Strategy Builder (or Strategy Wizard). This will create the framework of the indicator or strategy which has large changes from NinjaTrader 7 to NinjaTrader 8.

      Then copy all code from the NinjaTrader 7 scripts OnBarUpdate to the OnBarUpdate of the NinjaTrader 8 script. This will introduce errors that will need to be resolved.

      Below I am including a link to a list of the code-breaking changes from NinjaTrader 7 to NinjaTrader 8.
      http://ninjatrader.com/support/helpG...ng_changes.htm

      The help guide will be the best way to see how things have changed from NinjaTrader 7 to NinjaTrader 8.

      When first starting to port scripts, you should open the NinjaTrader 7 help guide and the NinjaTrader 8 help guide to the same sections so that you could compare. The majority of code supported by NinjaTrader is included in the help guides.

      Below is a link to a forum post with helpful information about getting started with NinjaScript.
      https://ninjatrader.com/support/foru...040#post786040
      <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      633 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      364 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      567 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      568 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X