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 PaulMohn, Today, 12:36 PM
      2 responses
      16 views
      0 likes
      Last Post PaulMohn  
      Started by Conceptzx, 10-11-2022, 06:38 AM
      2 responses
      53 views
      0 likes
      Last Post PhillT
      by PhillT
       
      Started by Kaledus, Today, 01:29 PM
      0 responses
      4 views
      0 likes
      Last Post Kaledus
      by Kaledus
       
      Started by yertle, Yesterday, 08:38 AM
      8 responses
      37 views
      0 likes
      Last Post ryjoga
      by ryjoga
       
      Started by rdtdale, Today, 01:02 PM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Working...
      X