Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

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

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

    #16
    now I get it
    thank you

    Comment


      #17
      Hi, sorry to hijack this thread but I'm having the same problem with an indicator I found on the internet. I tried to contact the creator of the indicator but he never replied me. I see the Xmllgnore attribute being mentioned but I have no idea what that means. I do see that throughout the code though. I'm probably in way over my head since I don't know programming but any help to push me in the right direction would be much appreciated. Thanks
      Attached Files

      Comment


        #18
        hey timoting. I did get help to solve it.

        below is the code at the top of the indicator rightbelow namespace

        the series I wanted to make public are shown here. But if you put the [XmlIgnore] statement in front of the declaration then it will save properly in a template. from what I could tell, its only when you save a template that it uses (and ignores) anything with that statement. I assume templates are saved as Xml files.

        so your indicator works either way, but can save in a template without XmlIgnore. just put it in front of your series declarations


        public class tdOBVM : Indicator
        {
        public override string DisplayName {get { return this.Name;}} // Hide Paramaters on display

        [XmlIgnore] public Series<int> OBVUpDown;
        [XmlIgnore] public Series<int> OBVAboveSignal;

        Comment


          #19
          I'm nowhere near ass expert as the rest of the people on this forum, only on post 25. But looking at the properties code starting around line 325, the XmlIgnore attribute is commented out. I suggest removing the // in front of XmlIgnore and try recompiling

          Comment


            #20
            Hey, thanks for trying to help. I see there's a bunch of XmlIgnore attributes that were commented out and I tried uncommenting them but I'm still getting the error. Any other suggestions?

            Comment


              #21
              try this one. in addition to uncommenting all the places that had XmlIgnore there were a few more public variables that needed it added.

              I tested it and didn't get the error. hopefully this will work for you.
              Attached Files

              Comment


                #22
                Nice, it works now! Thank you so much. Don't think I could've figured it out. Much appreciated

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by bortz, 11-06-2023, 08:04 AM
                47 responses
                1,606 views
                0 likes
                Last Post aligator  
                Started by jaybedreamin, Today, 05:56 PM
                0 responses
                8 views
                0 likes
                Last Post jaybedreamin  
                Started by DJ888, 04-16-2024, 06:09 PM
                6 responses
                18 views
                0 likes
                Last Post DJ888
                by DJ888
                 
                Started by Jon17, Today, 04:33 PM
                0 responses
                4 views
                0 likes
                Last Post Jon17
                by Jon17
                 
                Started by Javierw.ok, Today, 04:12 PM
                0 responses
                13 views
                0 likes
                Last Post Javierw.ok  
                Working...
                X