Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need Help Activating Ninjascript Strategy

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

    Need Help Activating Ninjascript Strategy

    I recently moved to NT from a competitor. Just created my first Ninjascript strategy and debugged it using Visual Studio with NT. Need help activating the strategy to further test it. As mentioned, it is currently in Visual Studio. Have attempted to zip the strategy and import, but it didn't work.

    #2
    Hello gwmey31,

    Welcome to the NinjaTrader forums!

    This was posted in the NinjaTrader 7 section of the forums. To confirm, this is for NinjaTrader 7 and is not for NinjaTrader 8, is this correct?


    May I confirm you created the script in the NinjaScript Editor in NinjaTrader?

    If not, create the script using the NinjaScript Editor.

    If you use Visual Studio, do not build or run in Visual Studio. Compile using the NinjaScript Editor only.

    In NinjaTrader 8, if you leave the NinjaScript Editor open and save the file only in Visual Studio and NinjaTrader will automatically trigger a compile.


    Below I am providing a link to a support article with helpful resources on getting started with C# and NinjaScript.


    As this is for NinjaTrader 7, much of the same information for NinjaTrader 7 can be found on this forum post.



    Also, below is a link to the 'Strategy Wizard 301' training video set to the time where enabling the strategy is demonstrated.


    As well as the 'Automate Your Trading with NinjaTrader's Strategy Builder' for NinjaTrader 8.



    A script must be exported from NinjaTrader to be importable. This creates a file structure and information files in the export.
    Putting a loose .cs file in a .zip file does not make it importable.

    To export a NinjaTrader 7 NinjaScript so this may be shared and imported by the recipient do the following:
    1. Click File -> Utilities -> Export NinjaScript
    2. Enter a unique name for the file in the value for 'File name:'
    3. Select the strategy from the objects list on the left -> click the right facing arrow ">" to add the strategy to the export
    4. Click the 'Export' button -> click 'yes' to add any referenced indicators to the export -> click OK to clear the export location message
    The exported file will be in the following location:
    • (My) Documents\NinjaTrader 7\bin\Custom\ExportNinjaScript\<export_file_name.z ip>
    Below is a link to the help guide on Exporting NinjaScripts.



    To export a NinjaTrader 8 NinjaScript so this can be shared and imported by the recipient do the following:
    1. Click Tools -> Export -> NinjaScript Add-on...
    2. Click the 'add' link -> check the box(es) for the script(s) and reference(s) you want to include
    3. Click the 'Export' button
    4. Enter the script name in the value for 'File name:'
    5. Choose a save location -> click Save
    6. Click OK to clear the export location message
    By default your exported file will be in the following location:
    • (My) Documents/NinjaTrader 8/bin/Custom/ExportNinjaScript/<export_file_name.zip>
    Below is a link to the help guide on Exporting NinjaScripts.
    http://ninjatrader.com/support/helpG...nt8/export.htm
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    572 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    331 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    549 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    550 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X