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

How to generate .cs file from .dll?

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

    How to generate .cs file from .dll?

    Hello,
    often I see indicator packages that do not include .cs file within their distribution. For example, let's say there is MyIndicators.zip which contains

    MyIndicators.dll
    MyIndicators.X64.dll
    MyIndicators.X86.dll
    Info.xml

    and all indicators in this package can be imported and used in charts successfully.

    The problem is that MyIndicators.cs is missing, which means that no indicators from this package can be used from custom indicators/strategies (class names can be used in variable declaration but cannot be instantiated). The same applies if MyIndicators.cs is not missing, but it does not contain necessary methods for creating the indicators.

    The questions is: how to (re)generate the missing .cs file from .dll? I believe all necessary information can be derived from .dll because Ninja is able to use the indicators in charts even without .cs file.

    #2
    Endif, you could unfortunately not recreate the .cs file alone - it would be only possible to export the scripts as assembly fresh again so NT would include it then.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by funk10101, Today, 12:02 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by GLFX005, Today, 03:23 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by nandhumca, Yesterday, 03:41 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by The_Sec, Yesterday, 03:37 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by vecnopus, Today, 06:15 AM
    0 responses
    1 view
    0 likes
    Last Post vecnopus  
    Working...
    X