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

Re NinjaScript indicator and drawing tool development - how to debug code

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

    Re NinjaScript indicator and drawing tool development - how to debug code

    Hi,

    When modifying NinjaScript indicator or drawing tool:

    (1) how do developers debug written code - is it possible to step through code and observe variables and output while stepping through?

    (2) Are there any videos, courses or tutorials describing the development and debug process for indicators and drawing tools ?

    (3) what are the interfaces used by the C# program in to the NinjaScript environment for generating charts / drawings etc? Any references to these? Is there a description of the interfaces to Ninja Trader that the drawing tools and indicators use?

    (4) In response to a query about drawing tools Chris pointed me to an example in the Bin directory of a Visual Studio project file " that has a custom build event" what is the custom Build Event? and will build event work with any program example, or will it have to be generated on a per file basis - if so any pointers as to how to go about generating the required build event.

    Pardon if I am not using the correct terms.​

    TIA

    #2
    Hello, thanks for writing in. You can use Visual Studio to debug. We have a guide on doing this here:



    There are no interfaces that are exposed, we are only able to generate new scripts from the various folders in the NInjaScript Editor. E.g. Right click the Indicators folder, and there is an option to generate a new Indicator script. Everything on our NinjaScript library is documented in our help guide here:



    The custom build event in the .csproj file creates a NinjaTrader.Custom.dll and puts it in the Documents\NinjaTrader 8\bin\Custom. This is how we can develop from Visual Studio, as a normal visual studio project will just build a single DLL file with only the code in the project within. Doing that you would have to manually move the DLL File over restart the platform every time you build.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Hi Chris,

      thanks for the info - will work through that.

      Cheers

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by pibrew, Today, 06:10 PM
      1 response
      16 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by actualfacts.2021, 07-25-2021, 03:11 PM
      8 responses
      1,182 views
      0 likes
      Last Post linkcou
      by linkcou
       
      Started by reynoldsn, Today, 07:11 PM
      0 responses
      4 views
      0 likes
      Last Post reynoldsn  
      Started by needsomehelp147, 04-29-2024, 06:43 AM
      2 responses
      20 views
      0 likes
      Last Post needsomehelp147  
      Started by sidlercom80, 10-28-2023, 08:49 AM
      177 responses
      2,401 views
      0 likes
      Last Post jeronymite  
      Working...
      X