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 judysamnt7, 03-13-2023, 09:11 AM
      4 responses
      53 views
      0 likes
      Last Post DynamicTest  
      Started by ScottWalsh, Today, 06:52 PM
      4 responses
      33 views
      0 likes
      Last Post ScottWalsh  
      Started by olisav57, Today, 07:39 PM
      0 responses
      5 views
      0 likes
      Last Post olisav57  
      Started by trilliantrader, Today, 03:01 PM
      2 responses
      19 views
      0 likes
      Last Post helpwanted  
      Started by cre8able, Today, 07:24 PM
      0 responses
      6 views
      0 likes
      Last Post cre8able  
      Working...
      X