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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    82 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    43 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    68 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    56 views
    0 likes
    Last Post CarlTrading  
    Working...
    X