• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error Reflecting Type

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

    Error Reflecting Type

    Hi,

    I wrote two indicators and they happen to be in a custom folder. I get an error "Could not save indicator XXXX: There was an error reflecting type "YYYYYY"

    XXXX = indicator name
    YYYY = indicator namespace.name

    This error occurs when I try to save the indicators as default indicators, or when they indicators or on the chart and I try to save the workspace.

    #2
    Hello KhaosTrader,

    Thank you for your post.

    We would need the full message as read in the log as well as an indicator that produces this message.

    May we test one of the indicators that is producing this message? You can send it to us at platformsupport[at]ninjatrader[dot]com with 'ATTN: Patrick H - 1531337' in the subject line. The file is located under Documents\NinjaTrader 8\bin\Custom\Indicators and will be a .cs file.
    Patrick H.NinjaTrader Customer Service

    Comment


      #3
      Hi,

      This error occurred when I changed class names in the indicator. I just deleted all these classes, recompiled, then added the classes back in, and recompiled again, and it worked.

      Comment


        #4
        I'm presently trying to track down the cause of an error message I'm getting:

        2016-11-08 14:37:20:496 ERROR: Could not save indicator 'AtsTimeSales:' There was an error reflecting type 'NinjaTrader.NinjaScript.Indicators.ATS.AtsTSIndy' .

        Can NT8 be changed to log more detailed exception information? What member of my class was reflection happening on that caused the error? I don't know and it's a large class. The details would help. Thank you.

        Comment


          #5
          Hello Brillo,

          Thank you for your post.

          I will forward your request to development.
          Patrick H.NinjaTrader Customer Service

          Comment


            #6
            Thanks Patrick,
            This example is not the only one I've experienced this issue.
            Another one that I've been getting sometimes is when I'm closing a workspace and I get an exception:

            Code:
            2016-11-07 11:15:00:798|0|4|Unhandled exception: The specified Visual is not a descendant of this Visual.
            It would be useful to know more info about the 2 visuals involved, the type of the exception and the callstack.

            Maybe just logging exception.ToString() would be better than logging exception.Message.
            But for certain types like the ones I mentioned some additional info about the objects would have to be explicitly logged in the handlers. This will help you guys track the problems down more quickly when users forward you the logs.

            Comment


              #7
              Hello Brillo,

              Your feature request has been assigned the id SFT-1276.
              Patrick H.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by escobar63, Today, 05:06 PM
              0 responses
              5 views
              0 likes
              Last Post escobar63  
              Started by i2w8am9ii2, Today, 04:41 PM
              0 responses
              5 views
              0 likes
              Last Post i2w8am9ii2  
              Started by Renorail, Today, 03:40 PM
              3 responses
              11 views
              0 likes
              Last Post Renorail  
              Started by explorer101, Today, 03:27 PM
              1 response
              3 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by 7robert, Today, 03:08 PM
              1 response
              12 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Working...
              X