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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        476 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        317 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        254 views
        1 like
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        340 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        306 views
        0 likes
        Last Post CarlTrading  
        Working...
        X