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 CortexZenUSA, Today, 12:53 AM
      0 responses
      1 view
      0 likes
      Last Post CortexZenUSA  
      Started by CortexZenUSA, Today, 12:46 AM
      0 responses
      1 view
      0 likes
      Last Post CortexZenUSA  
      Started by usazencortex, Today, 12:43 AM
      0 responses
      5 views
      0 likes
      Last Post usazencortex  
      Started by sidlercom80, 10-28-2023, 08:49 AM
      168 responses
      2,266 views
      0 likes
      Last Post sidlercom80  
      Started by Barry Milan, Yesterday, 10:35 PM
      3 responses
      13 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Working...
      X