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

Same enumeration in different indicator dll

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

    Same enumeration in different indicator dll

    I created an enumeration indicator that other indicators can use.

    It was created because the names are the same.

    DLL 1
    {
    When i compiled my dll I had a total of 3 indicators.
    indicator 1 was my enumeration indicator
    indicator 2
    indicator 3

    Both indicator 2 and 3 refers to indicator 1 to access the enumerations
    }
    I installed it and ran it with No Issues


    NOW DLL2

    i created another indicator in a separate dll

    Indicator 4 needs indicator 1 information.


    i tried to compile indicator 1 and indicator 4 and there is no issue BUT if I try to INSTALL TO Ninjatrader it will state in my trace log indicator already exists.

    If i try to compile indicator 4 by itself

    i get this error

    error CS0246: The type or namespace name 'EnumerationList' could not be found

    EnumerationList is Indicator 1

    How can I solve this issue so I don't have to rewrite enumerations everytime.

    #2
    Hello,

    Thank you for the post.

    I wanted to check, this seems related to your other post I had just replied to https://ninjatrader.com/support/foru...d.php?t=104765

    Can you confirm, is this the same item in question? If so, could you try the solution provided and see if this resolves the problem here?

    It looks like you are exporting multiple assemblies which is what would be suggested. Can you confirm your enum is alone in an assembly currently? Also, have you utilized the fully qualified name like the linked post has shown?


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by quantismo, 04-17-2024, 05:13 PM
    5 responses
    32 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by proptrade13, Today, 11:06 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by love2code2trade, 04-17-2024, 01:45 PM
    4 responses
    34 views
    0 likes
    Last Post love2code2trade  
    Started by cls71, Today, 04:45 AM
    2 responses
    10 views
    0 likes
    Last Post eDanny
    by eDanny
     
    Started by kulwinder73, Today, 10:31 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Erick  
    Working...
    X