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

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 Mestor, 03-10-2023, 01:50 AM
      16 responses
      388 views
      0 likes
      Last Post z.franck  
      Started by rtwave, 04-12-2024, 09:30 AM
      4 responses
      31 views
      0 likes
      Last Post rtwave
      by rtwave
       
      Started by yertle, Yesterday, 08:38 AM
      7 responses
      29 views
      0 likes
      Last Post yertle
      by yertle
       
      Started by bmartz, 03-12-2024, 06:12 AM
      2 responses
      22 views
      0 likes
      Last Post bmartz
      by bmartz
       
      Started by funk10101, Today, 12:02 AM
      0 responses
      7 views
      0 likes
      Last Post funk10101  
      Working...
      X