NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support

Miscellaneous Support Miscellaneous support issues.

Reply
 
Thread Tools Display Modes
Old 07-29-2012, 06:05 PM   #1
mrcartel
Junior Member
 
Join Date: Apr 2011
Posts: 14
Thanks: 2
Thanked 0 times in 0 posts
Default Custom Ninja Script File

Dear NT,

I am trying to import a file, but I keep getting an error message saying I have a programming error. These errors must be resolved before I cam import.

Please advise.
mrcartel is offline  
Reply With Quote
Old 07-29-2012, 06:20 PM   #2
NinjaTrader_Matthew
NinjaTrader Customer Service
 
NinjaTrader_Matthew's Avatar
 
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,858
Thanks: 162
Thanked 579 times in 570 posts
Default

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 always compiles all indicators and strategies - not just one. This is done to give you the highest runtime performance possible.
  • 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 comment out offending code sections, remove the complete indicator or debug it to be able to compile again.
  • 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 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.

We have also collected more comprehensive steps for resolving NinjaScript programming errors in this tip on our forums - http://www.ninjatrader.com/support/f...ead.php?t=4678
NinjaTrader_Matthew is offline  
Reply With Quote
Old 07-29-2012, 07:08 PM   #3
mrcartel
Junior Member
 
Join Date: Apr 2011
Posts: 14
Thanks: 2
Thanked 0 times in 0 posts
Default

Hi Matt,

I've attached the screenshot. When I search for the actual file that has the issue it has a lock on it.
Attached Images
File Type: jpg NT script help.jpg (677.8 KB, 8 views)
mrcartel is offline  
Reply With Quote
Old 07-29-2012, 07:40 PM   #4
mrcartel
Junior Member
 
Join Date: Apr 2011
Posts: 14
Thanks: 2
Thanked 0 times in 0 posts
Default

Here is the revised screenshot
Attached Images
File Type: jpg NT script help.jpg (340.4 KB, 5 views)
mrcartel is offline  
Reply With Quote
Old 07-29-2012, 08:30 PM   #5
NinjaTrader_Matthew
NinjaTrader Customer Service
 
NinjaTrader_Matthew's Avatar
 
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,858
Thanks: 162
Thanked 579 times in 570 posts
Default

Hello,

Can you please download the attached @Swing indicator to (My) Documents\NinjaTrader 7\bin\custom\indicators

Once downloaded, please recompile and let me know if further errors are received.
Attached Files
File Type: cs @Swing.cs (14.0 KB, 5 views)
Last edited by NinjaTrader_Matthew; 07-29-2012 at 08:33 PM.
NinjaTrader_Matthew is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Matthew for this post:
Old 07-30-2012, 05:58 PM   #6
mrcartel
Junior Member
 
Join Date: Apr 2011
Posts: 14
Thanks: 2
Thanked 0 times in 0 posts
Default

Matt,

Thanks for your help...Everything went well.
mrcartel is offline  
Reply With Quote
Old 07-30-2012, 06:02 PM   #7
NinjaTrader_Matthew
NinjaTrader Customer Service
 
NinjaTrader_Matthew's Avatar
 
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,858
Thanks: 162
Thanked 579 times in 570 posts
Default

Great, glad that worked!
NinjaTrader_Matthew 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
You have custom ninja script files on your pc... Newell Charting 11 02-23-2012 08:08 AM
programming errors in custom ninja script raycam Version 7 Beta General Questions & Bug Reports 5 08-18-2010 05:40 AM
You have custom ninja script files on your pc prostyle Miscellaneous Support 1 07-14-2010 05:52 AM
Can Ninja script print into Ninja Log/Trace file? maxima General Programming 2 05-24-2008 04:48 PM
Ninja script File sharing - Strategies Bogan7 Miscellaneous Support 0 03-31-2008 09:16 PM


All times are GMT -6. The time now is 12:17 AM.