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 cmoran13, 04-16-2026, 01:02 PM
        0 responses
        42 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        25 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        162 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        157 views
        2 likes
        Last Post CaptainJack  
        Working...
        X