Go Back   NinjaTrader Support Forum > NinjaTrader 7 > Platform Technical Support

Platform Technical Support General platform technical support for NinjaTrader 7.

Reply
 
Thread Tools Display Modes
Old 04-29-2012, 04:10 PM   #1
Hack445
Junior Member
 
Join Date: Apr 2012
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default Importing NinjaScript on new machine

I have a new trading PC and have downloaded Ninja 7.0.1000.10. License Key took, I'm connected to data, all is well. However when I try to import some custom Ninjascript that I've used for months on my old machine I get the "You have custom NinjaScript files on your PC that have programming errors. These errors must be resolved before you can import a NinjaScript Acrchive File". I have just downloaded a clean version of Ninja so I'm confused how I can have Ninjascript files with programming errors. Any suggestions?

Thanks
Hack445 is offline  
Reply With Quote
Old 04-29-2012, 05:37 PM   #2
NinjaTrader_PatrickH
NinjaTrader Customer Service
 
NinjaTrader_PatrickH's Avatar
 
Join Date: Jul 2011
Location: Denver, CO
Posts: 9,511
Thanks: 707
Thanked 1,602 times in 1,542 posts
Default

Hello Hack445,

Thank you for your post and welcome to the NinjaTrader Support Forum!

Please follow the instructions below to see where the errors are coming from after compiling the indicator. This will allow you to debug the indicator/strategy or remove it from your PC. If you are wondering why you receive an error when compiling only one indicator, it is because NinjaTrader compiles all indicators and strategies- not just one.
  • Open NinjaTrader
  • From the Control Center select the Tools menu--> select the Edit NinjaScript menu item--> select Indicator
  • Select an indicator and double click on it.
  • A new window will appear and you will need to right click in the window and select Compile to compile the indicators.
  • At the bottom of the window a new section will appear where you can find the error locations.
  • From there you have the option to remove the indicator or debug it.
If you are unsure as to what the error is indicating, please send me a screenshot of the error with the name and description fields clearly readable to support[at]ninjatrader[dot]com with "ATTN: Patrick" in the subject line and a reference to this thread in the body of the e-mail: http://www.ninjatrader.com/support/f...ad.php?t=49469

To send a screenshot press Alt + PRINT SCREEN to take a screen shot of the selected window. Then go to Start--> Accessories--> Paint, and press CRTL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.

Please let me know if I may be of further assistance.
NinjaTrader_PatrickH is offline  
Reply With Quote
Old 04-29-2012, 09:10 PM   #3
Hack445
Junior Member
 
Join Date: Apr 2012
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default

Thank you Patrick. This did the trick. Appreciate your quick response.
Hack445 is offline  
Reply With Quote
Old 05-04-2012, 09:59 AM   #4
kauai35
Junior Member
 
Join Date: May 2010
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default Indicator error

Hello Patrick,

I have a replacement indicator from a vendor that I was trying to load. Before importing I tried to delete the the previous indicator and got an error message. I opened the custom folder and manually deleted the dll and all associated filed, but I still get this error message. Please help.

Thanks,
KC
Attached Images
File Type: jpg Programming errors.JPG (102.0 KB, 7 views)
kauai35 is offline  
Reply With Quote
Old 05-04-2012, 10:08 AM   #5
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 26,203
Thanks: 487
Thanked 1,840 times in 1,781 posts
Default

KC, welcome to our forums here - could you please right click in the indicator code and select 'References' and then delete the not needed reference for the Sniper indicator from the upcoming list? Once done, see if you can compile normally then by hitting F5 in the editor. If yes, you can reimport your new script version.

Thanks,
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 05-04-2012, 12:29 PM   #6
kauai35
Junior Member
 
Join Date: May 2010
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default Worked perfectly...

Thank you very much
kauai35 is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems Importing Ninjascript maxreturn Platform Technical Support 5 11-17-2011 09:56 AM
Problem importing NinjaScript ScottieDog NinjaScript File Sharing Discussion 6 01-27-2011 09:01 AM
Error importing NinjaScript JoshDance Platform Technical Support 3 01-04-2011 12:58 AM
Error importing ninjascript code Picita General Development 2 12-02-2010 06:58 AM
Importing NinjaScript howorb Indicator Development 6 08-11-2010 08:47 AM


All times are GMT -6. The time now is 04:46 AM.

Futures, foreign currency and options trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.

CFTC Rules 4.41 - Hypothetical or Simulated performance results have certain limitations, unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

This website is hosted and operated by NinjaTrader, LLC (“NT”), a software development company which owns and supports all proprietary technology relating to and including the NinjaTrader trading platform. NT is an affiliated company to NinjaTrader Brokerage (“NTB”), which is a NFA registered introducing broker (NFA #0339976) providing brokerage services to traders of futures and foreign exchange products. This website is intended for educational and informational purposes only and should not be viewed as a solicitation or recommendation of any product, service or trading strategy. No offer or solicitation to buy or sell securities, securities derivative or futures products of any kind, or any type of trading or investment advice, recommendation or strategy, is made, given, or in any manner endorsed by any NT affiliate and the information made available on this Web site is not an offer or solicitation of any kind. Specific questions related to a brokerage account should be sent to your broker directly. The content and opinions expressed on this website are those of the authors and do not necessarily reflect the official policy or position of NT or any of its affiliates. 

Vendors along with their websites, products and services, collectively referred to as (“Vendor Content”), are independent persons or companies that are in no manner affiliated with NT or any if its affiliates. NT or any of its affiliates are not responsible for, do not approve, recommend or endorse any Vendor Content referenced on this website and it’s your sole responsibility to evaluate Vendor Content. Please be aware that any performance information provided by a vendor should be considered hypothetical and must contain the disclosures required by NFA Rule 2-29(c). If you are interested in learning more about, or investigating the quality of, any such Vendor Content you must contact the vendor, provider or seller of such Vendor Content. No person employed by, or associated with, NT or any of its affiliates is authorized to provide any information about any such Vendor Content. Visit the CFTC resources for education regarding the industry and signs of fraud.