• 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

I can only set 3 properties?

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

    I can only set 3 properties?

    Hi. aparently i can only set 3 properties. code looks like this
    Code:
            #region Properties
            [Browsable(false)]    // this line prevents the data series from being displayed in the indicator properties dialog, do not remove
            [XmlIgnore()]        // this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
            [GridCategory("Trend Definition"), Description("")]
            public double MAGap
            {
                get{return gap;}
                set{gap = Math.Max(2, value);}
            }
            
            [GridCategory("Trend Definition"), Description("")]
            public double Channel
            {
                get{return channel;}
                set{channel = Math.Max(2, value);}
            }
            [GridCategory("Trend MAs"), Description("")]
            public int SMAPeriod
            {
                get{return smaperiod;}
                set{smaperiod = value;}
            }
            [GridCategory("Trend MAs"), Description("")]
            public int EMAPeriod
            {
                get{return emaperiod;}
                set{emaperiod =  value;}
            }
            #endregion
    strange thing about it is, that its not and "linking" or typing error. because its always the first one that isnt working. i can copy the first one to the bottom of the thing and it works, tho then the now first one doesnt work any more, tho it worked before. very strange.

    #2
    Remove the "[Browsable(false)]"

    Comment


      #3
      worked.
      much thanks



      might aswell ask another question.
      i am currently drawing stuff via indicator on my chart. but the stuff im drawing is most often behind the actual bars rather then ontop of them.

      and ideas?

      Comment


        #4
        http://ninjatrader.com/support/forum...ad.php?t=39807

        See above thread

        Comment


          #5
          thanks again

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by lavalampmj, Today, 05:25 PM
          0 responses
          1 view
          0 likes
          Last Post lavalampmj  
          Started by Antares66, Today, 05:19 PM
          0 responses
          2 views
          0 likes
          Last Post Antares66  
          Started by jmneto, Today, 05:18 PM
          0 responses
          2 views
          0 likes
          Last Post jmneto
          by jmneto
           
          Started by Bobbyj78, Today, 02:21 PM
          2 responses
          12 views
          0 likes
          Last Post bltdavid  
          Started by EnveousColnago, Today, 02:10 PM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_Ariana  
          Working...
          X