Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.

        ICSharpCode has 19 repositories available. Follow their code on GitHub.


        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 ScottWalsh, 04-16-2024, 04:29 PM
          7 responses
          34 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by cls71, Today, 04:45 AM
          0 responses
          3 views
          0 likes
          Last Post cls71
          by cls71
           
          Started by mjairg, 07-20-2023, 11:57 PM
          3 responses
          214 views
          1 like
          Last Post PaulMohn  
          Started by TheWhiteDragon, 01-21-2019, 12:44 PM
          4 responses
          546 views
          0 likes
          Last Post PaulMohn  
          Started by GLFX005, Today, 03:23 AM
          0 responses
          3 views
          0 likes
          Last Post GLFX005
          by GLFX005
           
          Working...
          X