Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Need Help Activating Ninjascript Strategy
Collapse
X
-
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.Tags: None
-
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:- Click File -> Utilities -> Export NinjaScript
- Enter a unique name for the file in the value for 'File name:'
- Select the strategy from the objects list on the left -> click the right facing arrow ">" to add the strategy to the export
- Click the 'Export' button -> click 'yes' to add any referenced indicators to the export -> click OK to clear the export location message
- (My) Documents\NinjaTrader 7\bin\Custom\ExportNinjaScript\<export_file_name.z ip>
To export a NinjaTrader 8 NinjaScript so this can be shared and imported by the recipient do the following:- Click Tools -> Export -> NinjaScript Add-on...
- Click the 'add' link -> check the box(es) for the script(s) and reference(s) you want to include
- Click the 'Export' button
- Enter the script name in the value for 'File name:'
- Choose a save location -> click Save
- Click OK to clear the export location message
- (My) Documents/NinjaTrader 8/bin/Custom/ExportNinjaScript/<export_file_name.zip>
http://ninjatrader.com/support/helpG...nt8/export.htmChelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
576 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
553 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment