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 llanqui, Today, 03:53 AM
                0 responses
                6 views
                0 likes
                Last Post llanqui
                by llanqui
                 
                Started by burtoninlondon, Today, 12:38 AM
                0 responses
                10 views
                0 likes
                Last Post burtoninlondon  
                Started by AaronKoRn, Yesterday, 09:49 PM
                0 responses
                15 views
                0 likes
                Last Post AaronKoRn  
                Started by carnitron, Yesterday, 08:42 PM
                0 responses
                11 views
                0 likes
                Last Post carnitron  
                Started by strategist007, Yesterday, 07:51 PM
                0 responses
                14 views
                0 likes
                Last Post strategist007  
                Working...
                X