Announcement

Collapse
No announcement yet.

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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by sjsj2732, 03-23-2026, 04:31 AM
    0 responses
    77 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    313 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    314 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    149 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    114 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X