• 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

variable declaration

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

    variable declaration

    what wrong getting a negative variable from the "properties" region in the code ?
    Code:
    private double        tsiOB = 50;  // default settings for Tsi overbought
                private double     tsiOS = -50;  // default settings for Tsi oversold
                private int        tsiFast = 3;     // fast
                private    int        tsiSlow = 14;    // slow
    // under "Properties" :
            [Description("")]
            [GridCategory("Parameters")]
            [Gui.Design.DisplayName ("d.Boll OverS")]
            public int BPercOS
            {
                get { return bPercOS; }
                set { bPercOS = Math.Max(1, value); }
            }
    The displayed value in the indicators panel can't be changed to say -50.
    It stays at 1 and don't know why.
    thanks for the help

    #2
    Hello mate41,

    I am answering the thread you left here, http://ninjatrader.com/support/forum...ad.php?t=82597 . Please try to keep your questions constrained to a single thread, it will make it easier to get you the help you need in the future, and will help other users that observed the same behavior you have.
    Jessica P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by hobah99, Today, 04:12 PM
    0 responses
    3 views
    0 likes
    Last Post hobah99
    by hobah99
     
    Started by arguru, Today, 04:07 PM
    0 responses
    6 views
    0 likes
    Last Post arguru
    by arguru
     
    Started by Abdullah_KSA, Yesterday, 12:52 PM
    6 responses
    41 views
    0 likes
    Last Post NinjaTrader_ChristopherD  
    Started by ZivGillat, 06-29-2020, 11:47 AM
    4 responses
    29 views
    0 likes
    Last Post ZivGillat  
    Started by NinjaTrader_PaulH, Today, 01:48 PM
    0 responses
    9 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Working...
    X