Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Optimising on different categories

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

    Optimising on different categories

    Hello,
    I've written a startegy with many user definable variables. To keep things organised I have placed them in different categories useing code such as
    Code:
    [Description("DailyWave Period")]
            [Category("Basic Params")]
           
    		public int TradesPerDay
            {
                get { return DayTradeLimit; }
                set { DayTradeLimit = Math.Max(0, value); }
            }
    I would like to run the optimiser on some of these parameters but they are not availble to be optimised. What can I do?
    Thanks
    Tal

    #2
    Hi Tal,

    That should show up in the list of available fields to optimize. Any improvement if you remove the carriage return inbetween the xml markup and code, like:

    Code:
    [Description("DailyWave Period")]
    [Category("Basic Params")]
    public int TradesPerDay
    {
         get { return DayTradeLimit; }
         set { DayTradeLimit = Math.Max(0, value); }
    }
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      More info

      Hi Ryan,
      Thanks for the prompt reply.
      I didn't understand the change you recomended. If its a matter of text formatting, my code is well formated but cuting and pasting change the indentation.
      I'm icluding a screenshot of the optimisation window to clarify my problem. As you can see, I can not select a range for any of the parameters (M apologies, I blanked out the names as this is for a client)
      Thanks,
      Tal
      Attached Files

      Comment


        #4
        In the snippet you posted to the forums, there is an uneccessary line there:
        [Category("Basic Params")]
        Remove any lines here.
        public int TradesPerDay.

        Is this line present in your own code?
        Last edited by NinjaTrader_RyanM1; 06-11-2012, 12:09 PM.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Hi Ryan
          No thereare no blanks there in my code

          Comment


            #6
            For NT7 you'll want to use GridCategory instead.

            [Description("DailyWave Period")]
            [GridCategory("Basic Params")]
            public int TradesPerDay
            {
            get { return DayTradeLimit; }
            set { DayTradeLimit = Math.Max(0, value); }
            }
            Last edited by NinjaTrader_RyanM1; 06-11-2012, 02:43 PM. Reason: Discovered likely cause
            Ryan M.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            68 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            42 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            24 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            27 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            54 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X