NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 03-04-2009, 08:38 AM   #1
stefy
Senior Member
 
Join Date: Apr 2008
Posts: 310
Thanks: 0
Thanked 0 times in 0 posts
Default Importing a method into NT

Hi

I need to use some statistical functions in NT which are not available, so I thought to import them.
For instance, I have a file .zip called correlation.zip, which contains correlation.cs. How can I import it to use the method into the NT compiler?

Thank you
stefy is offline  
Reply With Quote
Old 03-04-2009, 08:43 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

stefy,

You can't just import any file you find on the web. If it was not programmed in NinjaTrader you can't just import it.
NinjaTrader_Josh is offline  
Reply With Quote
Old 03-04-2009, 08:47 AM   #3
stefy
Senior Member
 
Join Date: Apr 2008
Posts: 310
Thanks: 0
Thanked 0 times in 0 posts
Default

OK, I also found a scientific library Science.dll.
I remember it's possible to import external libraries. I added it to the References in my code, but then if I try to use one of the its methods, I get an error in the compiler. Why?

Thank you
stefy is offline  
Reply With Quote
Old 03-04-2009, 09:02 AM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Add a using line like the ones you see up top. Unfortunately that is all I can offer you for support on this. You are diving into much more advanced C# concepts that we just cannot support.
NinjaTrader_Josh 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
Importing data from external files to NT Harry Indicator Development 3 02-17-2009 09:39 AM
Importing of indicator bugman4/u NinjaScript File Sharing Discussion 1 02-16-2009 04:38 PM
Importing NT Indicators 123r34 General Programming 3 03-16-2008 10:57 AM
If NT crashes after importing symbol list, list is not saved Pete S Historical NinjaTrader 6.5 Beta Threads 4 03-16-2008 06:10 AM
importing bohurst Suggestions And Feedback 1 04-14-2005 06:13 PM


All times are GMT -6. The time now is 05:35 AM.