Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Prevent property from optimization

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

    Prevent property from optimization

    I have a few properties in my strategy that are int's but not meant for optimization. The problem is, their very presence as an optimizable property seems to mess up a lot of things (causing a blank screen). If I remove them everything works ok.

    Is there an attribute or someway I can notify NT's optimizer to overlook/ignore these properties with respect to being optimizable variables?

    Jeremy
    Jeremytang
    NinjaTrader Ecosystem Vendor - Shark Indicators

    #2
    Hello Jeremytang,
    Unfortunately there are no native attributes except for setting the Browsable attribute to false.

    Code:
    [Browsable(false)]
    However please do keep in mind if you set the browsable attribute to false then the input cannot be selected via the parameters box..
    JoydeepNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Klaus Hengher, Yesterday, 03:13 AM
    2 responses
    15 views
    0 likes
    Last Post Klaus Hengher  
    Started by Sebastian - TwinPeaks, Yesterday, 01:31 PM
    2 responses
    13 views
    0 likes
    Last Post Sebastian - TwinPeaks  
    Started by wbennettjr, 07-15-2017, 05:07 PM
    16 responses
    2,531 views
    1 like
    Last Post eladlevi  
    Started by Human#102, Yesterday, 09:54 AM
    2 responses
    8 views
    0 likes
    Last Post Human#102  
    Started by Patlpp, 08-16-2021, 03:10 PM
    10 responses
    500 views
    0 likes
    Last Post Joerg
    by Joerg
     
    Working...
    X