Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Export Indicator Problems

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

    Export Indicator Problems

    Hi,

    I am trying to export one of my indicators that I wrote and I keep getting a compiling error. The indicator compiles and runs fine - just errors when I try to export.

    I narrowed the error down to a custom public enum which is in the code of my indicator. Its saying that the enum could not be found. Any ideas of what I need to do to get this to work?

    Thanks!

    #2
    Hello trade.ripper,

    Thank you for your post.

    Could you check the log tab of the control center and let us know the exact error message you're getting.

    Can also share the .cs file and we can test this from here.

    One guess is that you are referencing an enum that is declared in another file and also need to include that file with your export.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks for looking at this...

      Here is the error:
      The type or namespace name 'LabelSideType' could not be found (are you missing a using directive or an assembly reference?)
      Last edited by trade.ripper; 06-03-2010, 07:42 AM.

      Comment


        #4
        Hello TradeRipper,

        I was not able to compile this indicator. This looks to be due to the scope that the enum is declared.

        namespace NijaTrader.Gui.Chart
        {
        public enum LabelSideType {Right, Left};
        }


        The "NinjaScript generated code" section will attempt to access this type for other elements in the platform. When I remove the namespace section it compiles successfully. I've exported this file successfully in Version 7, but this may cause issues for you if you declared the enum in other files as enums must be unique.
        Attached Files
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by kinfxhk, 07-14-2026, 09:39 AM
        0 responses
        125 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        105 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        85 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        105 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        84 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X