Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Structuring common code - Possible to use DLL from Visual Studio?

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

    Structuring common code - Possible to use DLL from Visual Studio?

    I have some code that doesn't use the Ninjatrader APIs. Is it possible to make a DLL with Visual Studio (or whatever the .NET equivalent is, I'm not too familiar with .NET yet) and then use the DLL with Ninjatrader?

    I have a couple of issues:

    1 - I want to avoid having all my code in one class. I have one strategy I'm working on and there is already a lot of code.

    2 - I'd like to develop the code that is independent of Ninjatrader and test it and package it into a DLL (or whatever).

    3 - I have common code that will be used for several strategies, I'd like these strategies to share this code.

    Are any of these possible? Worst case, can one strategy call another one?
    Last edited by cunparis; 10-26-2008, 07:17 AM. Reason: Clarify title

    #2
    Yes, you can create a DLL and reference this DLL inside of NinjaScript. This is actually not a NinjaScript capability but standard C# .NET coding.
    RayNinjaTrader Customer Service

    Comment


      #3
      You can do this with Visual Studios and DLL fuctions, but I have not tried this yet.

      In terms of the code getting large, check the other post about global functions

      You can also make use of
      #region name
      #endregion
      key words to minimize the amount of code displayed at a given time.
      mrlogik
      NinjaTrader Ecosystem Vendor - Purelogik Trading

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      630 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      364 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      566 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      568 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X