• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Duplicate Method Names

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

  • dontpanic
    replied
    No,

    I did not find a solution. From memory I think I ended up renaming the enum and the problem went away... even though I could not find that enum anywhere else.

    Leave a comment:


  • neoikon
    replied
    Was a solution found for this? Is there a particular coding practice that causes this to happen?

    Fortunately, I know how to undo the problem (if the import breaks NinjaTrader), but not prevent it from happening.

    The behavior seems to vary from machine to machine as well, which makes it difficult to debug.

    Thanks!

    Leave a comment:


  • NinjaTrader_CalH
    replied
    Will,

    Can you send me the exported zip folder, so that I may test it on my end?

    You can send the folder to support[at]ninjatrader[dot]com with ATTN Cal in the subject and a reference to this thread in the body.

    Thank you for your patience.

    Leave a comment:


  • dontpanic
    replied
    No, its a different computer with a fresh install of NT.

    Leave a comment:


  • NinjaTrader_CalH
    replied
    Will,

    Are you importing the system on the same computer you have the source code?

    Leave a comment:


  • dontpanic
    replied
    Hi Cal,

    I doubt that there is another indicator with the same name because I am trying to install it on a clean installation of NT.

    It is declared outside the namespace, and used only within the indicator.

    note that it compiles and run's fine, its only when I export it and then try to import it that the problem occurs.

    Will.

    Leave a comment:


  • NinjaTrader_CalH
    replied
    Will,

    Thank you for your posting.

    I believe this is because of the public enum that you are calling. If you are calling that public enum from any other indicator NinjaTrader will see this as a duplicate method error.

    Is this being called within the Indicator class or outside of it?

    Leave a comment:


  • dontpanic
    started a topic Duplicate Method Names

    Duplicate Method Names

    Hi,

    I am getting the duplicate method names error when importing my custom indicator.

    I have scanned the forums and the suggested fixes have not helped me, but I can add that -

    - The error occurs whether or not I use CliSecure to encrypt
    - I have tried importing my indicator into a fresh and clean installation of NT, with no custom source files installed
    - I can copy the source file to the fresh NT installation and compile it without error
    - the source file includes one public enum
    - the source file uses the VOL.cs file which it says it needs to include when it exports

    Any suggestions?

    Thanks,
    Will.

Latest Posts

Collapse

Topics Statistics Last Post
Started by glennts, Today, 08:24 PM
2 responses
4 views
0 likes
Last Post bltdavid  
Started by ibabinov, 11-12-2019, 09:50 AM
3 responses
66 views
0 likes
Last Post NinjaTrader_ShawnB  
Started by PrimoItch, 05-27-2020, 04:35 PM
2 responses
17 views
0 likes
Last Post bkonia
by bkonia
 
Started by RuthB, Yesterday, 09:41 PM
1 response
16 views
0 likes
Last Post NinjaTrader_ChrisL  
Started by Newtrader101, Today, 12:12 PM
3 responses
12 views
0 likes
Last Post NinjaTrader_ShawnB  
Working...
X