• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

References/Explanations of NT methods/classes?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    References/Explanations of NT methods/classes?

    Hi there,

    At one point during my exploration of NT coding in C#, I found a forum thread (forget where) that explained what to call if you wanted the output window to show at the beginning of the strategy. The following code illustrates this:

    Code:
    protected override void OnStartUp() 
    		{
    			//  Show the output window on startup
    			NinjaTrader.Gui.Globals.OutputWindow.Show();
    		}
    My question is: Is there an online resource for NT that outlines all the options in a method/class as referenced above? Usually, I'll just do a bit of self-discovery in the code editor by typing 'NinjaTrader.Gui.' Then, I'll scan different options that pop-up in the context window next to my cursor. Still, I'd like an exhaustive reference if there is one.

    Any direction or reference URL's would be much appreciated!

    Yours,
    Spider

    PS - I've looked in the NT 7 Help Guide, but it doesn't include things like the Output window appearing on startup, or the other options within NinjaTrader.Gui.Globals.

    #2
    Spiderbird,

    Unfortunately this is considered an unsupported method, as such there wouldn't be any documentation on it really outside the support forum or BigMikes Trading forum.

    You could used something like Visual studio however to look at some things in memory while your code executes and learn more about it, as well as the self-discovery method you described (called intellisense).
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Thanks Adam!

      Is there an alternative to Visual Studio for visualizing the code execution while in memory? I'd like to take advantage of a VS-viewer rather than install that beast on a free PC.

      - Spider

      Comment


        #4
        Spiderbird,

        Actually yes, I use SharpDevelop.

        http://www.icsharpcode.net/OpenSource/SD/

        If you attach your code to the NinjaTrader.exe process you can basically set some breakpoints and "Stop" the execution of the indicator at that point. You won't see it plot on your chart, but you can then view all the objects, etc. in memory and sort of see how things are structured at that one point in your code. I had to use that to figure some stuff out in the past.
        Adam P.NinjaTrader Customer Service

        Comment


          #5
          Great, I'll check that out. Thanks again!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by aslane, Today, 02:31 PM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_Kate  
          Started by stoner, 10-16-2019, 01:38 PM
          5 responses
          51 views
          0 likes
          Last Post sledge
          by sledge
           
          Started by music_p13, Today, 12:04 PM
          1 response
          24 views
          0 likes
          Last Post NinjaTrader_Kate  
          Started by zaro33, Today, 10:55 AM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_Heath  
          Started by itrader46, Today, 10:16 AM
          5 responses
          11 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X