• 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 Newtrader101, Today, 10:31 AM
    1 response
    10 views
    0 likes
    Last Post koganam
    by koganam
     
    Started by nepenthean, Today, 12:36 PM
    0 responses
    4 views
    0 likes
    Last Post nepenthean  
    Started by sun0781, Yesterday, 05:02 PM
    1 response
    20 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by Emma1, Today, 12:14 PM
    0 responses
    2 views
    0 likes
    Last Post Emma1
    by Emma1
     
    Started by Hanstanz, Today, 04:44 AM
    1 response
    18 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X