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 tonynt, Today, 09:33 AM
        1 response
        2 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by minotti1, Today, 08:31 AM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_Jim  
        Started by SmartArtsStudio, 05-15-2021, 10:46 AM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Airwave, Today, 06:02 AM
        2 responses
        20 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by bottakemoney, Today, 12:10 AM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Working...
        X