Announcement

Collapse
No announcement yet.

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.

    Comment


      #3
      Hi Chris,

      thanks for the info - will work through that.

      Cheers

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      647 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      367 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      108 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      571 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      573 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X