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!
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
NinjaTrader
Duplicate Method Names
Collapse
X
-
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.
-
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:
-
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:
-
Will,
Are you importing the system on the same computer you have the source code?
Leave a comment:
-
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:
-
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:
-
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 MarianApalaghiei, Today, 10:49 PM
|
1 response
8 views
0 likes
|
Last Post Today, 11:11 PM | ||
Started by love2code2trade, Yesterday, 01:45 PM
|
4 responses
28 views
0 likes
|
Last Post Today, 10:31 PM | ||
Started by funk10101, Today, 09:43 PM
|
0 responses
8 views
0 likes
|
Last Post
by funk10101
Today, 09:43 PM
|
||
Started by pkefal, 04-11-2024, 07:39 AM
|
11 responses
37 views
0 likes
|
Last Post
by jeronymite
Today, 09:37 PM
|
||
Started by bill2023, Yesterday, 08:51 AM
|
8 responses
46 views
0 likes
|
Last Post
by bill2023
Today, 09:27 PM
|
Leave a comment: