Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Duplicate method names and files?

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

    Duplicate method names and files?

    I have two strategies which both utilize an indicator I built.

    My customer can't import the second (new) strategy because he gets an error about possible duplicate method names.

    Does this mean that in any one NT installation, trying to import any addon/strategy that happens to contain a method name that is same as an existing method name from another 3rd party addon, will cause import to fail? So no two vendors can use the same method names?

    #2
    Hello iantriestrading,

    In the use case you described you would need to create 3 exports to avoid that problem. First export the indicator as a compiled assembly and then from the editor exclude the strategies and indicator from compilation. Next import the compiled assembly version of the indicator. Finally export the two strategies separately and during the export screen use the drop down list to select references and add the indicator to the export. That will make it so when the client imports the indicator the strategies will use the same reference to avoid the conflict.

    Comment


      #3
      Ahhh I remember trying that before and I ended up spending days trying to figure out why it still wouldn't work - it was related to a shared DLL file between my strategy and the indicator, with enums. I kept getting import error about enums or types or something. I will have to try all again and see what the error was and get back to you. Thank you

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      23 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      120 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      63 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      41 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      45 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X