Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

error reflecting type 'NinjaTrader.NinjaScript.Indicators.FFD2'

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

    error reflecting type 'NinjaTrader.NinjaScript.Indicators.FFD2'

    Hi , I tried to save workspace and got the following error:
    Could not save indicator 'FFD2:' There was an error reflecting type 'NinjaTrader.NinjaScript.Indicators.FFD2'

    tried to save the workspace as a new one and exited and reload, same error.
    please advise.
    thanks,

    #2
    Hello HighTrade,

    Is this occurring with any other indicators?

    Can you add this FFD2 indicator to a new chart?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I was able to add my indicator FFD2 to a new chart , with no problem , saving workspace get error both from the new chart. and the old chart both with FFD2 indicator.

      Comment


        #4
        the problem does not occur with other indicators.

        Comment


          #5
          Hello HighTrade,

          If no other indicators are able to reproduce, this may be an issue with this indicator.

          May I have the importable .zip file for the indicator so I may test it on my end?
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            Here is the zip file
            Attached Files

            Comment


              #7
              FFD2.zip

              Comment


                #8
                Hello HighTrade,

                I wanted to let you know that I am able to reproduce the behavior, which means something is wrong with the script.

                I haven't yet had a moment to discover the cause yet though.

                However, is this a script you have made or one that you have imported?

                Have you reported this behavior to the vendor or author of the script so that they may correct the script? (Especially as they may still be distributing this script)
                Last edited by NinjaTrader_ChelseaB; 01-09-2019, 03:04 PM.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  Hello HighTrade,

                  The public Connection object is not using the XmlIgnore() attribute.
                  This should be a private variable.
                  Chelsea B.NinjaTrader Customer Service

                  Comment


                    #10
                    I made the connection private and no more errors. thank you .

                    Comment


                      #11
                      I am getting the same error HighTrade was getting. But I couldn't find a "public Connection" statement

                      can you point out what I need to change

                      thanks
                      Attached Files

                      Comment


                        #12
                        I can place the indicator on a chart and it loads fine with no errors. It's only when I try to save a template that I get errors.

                        Whatever I'm doing wrong, I'm very consistent. I have 6 indicators with the same problem

                        Comment


                          #13
                          Hello cre8able,

                          Do you have public objects?

                          Are those all using the XmlIgnore attribute?
                          Chelsea B.NinjaTrader Customer Service

                          Comment


                            #14
                            thanks Chelsea

                            I changed the series to private then created a property to make it public

                            Comment


                              #15
                              Hello cre8able,

                              That wouldn't be necessary. It's fine to have a public series, as long as it is using the XmlIgnore attribute.

                              The Connection object from post# 9 does not need public as it does not need to be accessible from outside of the class.
                              Chelsea B.NinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by mmenigma, Today, 02:22 PM
                              0 responses
                              1 view
                              0 likes
                              Last Post mmenigma  
                              Started by frankthearm, Today, 09:08 AM
                              9 responses
                              34 views
                              0 likes
                              Last Post NinjaTrader_Clayton  
                              Started by NRITV, Today, 01:15 PM
                              2 responses
                              9 views
                              0 likes
                              Last Post NRITV
                              by NRITV
                               
                              Started by maybeimnotrader, Yesterday, 05:46 PM
                              5 responses
                              26 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Started by quantismo, Yesterday, 05:13 PM
                              2 responses
                              20 views
                              0 likes
                              Last Post quantismo  
                              Working...
                              X