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 04-20-2008, 02:10 AM   #1
geoMEAN
Member
 
Join Date: Mar 2008
Posts: 69
Thanks: 0
Thanked 0 times in 0 posts
Question Dying to Know Why Hidden Auto-Generated Code Needed

Trying to learn exactly how NS works. I have read through some of the simple tutorials in the manual and they were helpful but I'm curious to know what is going on in the following blocks of code. I don't quite follow. I would appreciate an explanation of what's going on on each block of code and why.

Thanks anyone! Even short answers will be appreciated.

Attached Images
File Type: gif explain.png (31.0 KB, 82 views)
geoMEAN is offline  
Reply With Quote
Old 04-20-2008, 03:50 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Unfortunately this is beyond the scope of what we provide support for.

Note: You NEVER should EVER change any line of the code section hidden.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 04-20-2008, 08:54 AM   #3
Pete S
Senior Member
 
Join Date: Jul 2007
Location: Fairfax, VA
Posts: 216
Thanks: 0
Thanked 0 times in 0 posts
Default

They're creating a cache so that if you request the same indicator multiple times they don't have to recreate it. Not sure why you would care about that, if you are trying to learn about NT there are a lot more useful things to look at first.
Pete S is offline  
Reply With Quote
Old 04-20-2008, 04:16 PM   #4
geoMEAN
Member
 
Join Date: Mar 2008
Posts: 69
Thanks: 0
Thanked 0 times in 0 posts
Default

I'm trying to learn about C#, not necessarily just NT. I've learned most of the core features that I would use within NT so this was more of a programming question.

Dierk, I know not to edit any of this code as this would royally screw me over.

Pete, Thank you for your response. I see now why they need to cache the indicator.
geoMEAN is offline  
Reply With Quote
Old 04-20-2008, 07:52 PM   #5
geoMEAN
Member
 
Join Date: Mar 2008
Posts: 69
Thanks: 0
Thanked 0 times in 0 posts
Question Can we see the internals of the IndicatorBase class?

Ok so I can see that as I try to learn this stuff I'm coming up with too many questions that obviously you guy's can't support.

A broader question:

So of the questions I have come up with (and not asked out of consideration for your time) have related to methods or properties stored inside the "IndicatorBase" class. I haven't found a way to open the IndicatorBase class to inspect all the internal methods such as the Add() method of the IndicatorBase class. Is there a way to do this so I can inspect and dig deep down in the code of NT? For example, I would like to open the Add() method and see exactly how it works.

Or is that hidden from us (the dumb users)?

geoMEAN is offline  
Reply With Quote
Old 04-20-2008, 10:21 PM   #6
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Unfortunately we are unable to provide info of NT internal implementation.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 04-21-2008, 12:06 AM   #7
geoMEAN
Member
 
Join Date: Mar 2008
Posts: 69
Thanks: 0
Thanked 0 times in 0 posts
Default

Ah ok. That's fine. I'll just have to rely on the documentation.
geoMEAN 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
Request: Auto Connect on Startup and auto restart when connection down skynetman Suggestions And Feedback 24 03-07-2009 11:25 AM
Add Hidden Property? pivot44 Market Analyzer 1 04-16-2008 10:09 AM
Code->test/debug->change code->retest ... cycle process bbarroux Strategy Development 3 10-02-2007 12:44 PM
Plotting 3 lines beside Wizard generated code grd974 General Programming 2 08-26-2007 02:07 AM
Example of Auto Breakeven code? Thomas Strategy Development 4 08-17-2007 03:39 PM


All times are GMT -6. The time now is 04:33 PM.