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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      29 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      46 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Working...
      X