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 Mindset, 04-21-2026, 06:46 AM
            0 responses
            102 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            144 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            71 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by cmoran13, 04-16-2026, 01:02 PM
            0 responses
            125 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            79 views
            0 likes
            Last Post PaulMohn  
            Working...
            X