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!
See more
See less

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 agclub, 04-21-2024, 08:57 PM
        4 responses
        18 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by Irukandji, Today, 04:58 AM
        0 responses
        3 views
        0 likes
        Last Post Irukandji  
        Started by fitspressoburnfat, Today, 04:25 AM
        0 responses
        2 views
        0 likes
        Last Post fitspressoburnfat  
        Started by Skifree, Today, 03:41 AM
        1 response
        4 views
        0 likes
        Last Post Skifree
        by Skifree
         
        Started by usazencort, Today, 01:16 AM
        0 responses
        4 views
        0 likes
        Last Post usazencort  
        Working...
        X