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 wzgy0920, 04-20-2024, 06:09 PM
            2 responses
            26 views
            0 likes
            Last Post wzgy0920  
            Started by wzgy0920, 02-22-2024, 01:11 AM
            5 responses
            32 views
            0 likes
            Last Post wzgy0920  
            Started by wzgy0920, Yesterday, 09:53 PM
            2 responses
            49 views
            0 likes
            Last Post wzgy0920  
            Started by Kensonprib, 04-28-2021, 10:11 AM
            5 responses
            192 views
            0 likes
            Last Post Hasadafa  
            Started by GussJ, 03-04-2020, 03:11 PM
            11 responses
            3,234 views
            0 likes
            Last Post xiinteractive  
            Working...
            X