How to export a non-indicator from NT - futures trading

Go Back

> Trading Wiki > Help, Tutorials, and How-Tos

How to export a non-indicator from NT

Sometimes you need to export something other than an indicator/strategy from NT. For example, a bar type or bar style, which live in the "Type" dir instead of the "Indicator" dir. NT does not directly support this.

The best way that I have found to do this is to place the file in the Indicator directory within NT7, which is also the easiest place to edit/compile/debug it as well. Once you are happy with the code, you export the file as if it was an indicator using the NT Utilities -> Export NinjaScript menu options. The files will be exported into a zip archive, but it is not ready to use yet because it will have a "Indicator" path within the zip file, which is not where you want NT to import it.

In order to fix this, you need to use a zip tool that allows you to edit the zip file (i.e. winzip). Go into the zip archive, and rename the "Indicator" dir to "Type". Save the file, and it is ready to distribute, and NT will happily import the file to the correct Type dir when someone uses the Utilities -> Import NinjaScript option.
Zip utility to edit archives - WinZip

Created by  aslan , July 9th, 2010 at 10:44 PM
0 Comments, 2,084 Views
Page Tools
Search this Page

Posting Rules
You may not create new articles
You may not edit articles
You may not protect articles

You may not post comments
You may not post attachments
You may not edit your comments

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 05:05 PM.

Copyright © 2016 by All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.

Page generated 2016-10-25 in 0.06 seconds with 27 queries on phoenix via your IP