Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Sorting parameters

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

    Sorting parameters

    Hi all,
    is it posible to change the order of appearance of parameters?, for instance, i have this order on Parameters the right panel:

    timeExit 1;1;1
    nTicks 1;1;1
    emaPeriod 1;1;1
    exit 1;1;1

    I would like to reorder...

    exit 1;1;1
    timeExit 1;1;
    emaPeriod 1;1;1
    nTicks 1;1;1

    Is that posible?

    Thanks,
    Vince.

    #2
    Hello vibarco,
    You can use the DisplayName attribute to do it. You have to add numeric value before the name to do it.

    Please refer to this thread which further demonstrates it.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Thanks Joydeep,

      and is there any way to set a title? For instance:

      ==Exits==
      exitEnable true
      exitUsed 1;1;1

      i don't know if i can set a "==Exit==" title in the list.

      Regards,
      Vince.

      Comment


        #4
        Hello vibarco,
        You can name the Grid category accordingly to do it

        Code:
        [GridCategory("Exit")]
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          Thanks joydeep,

          great organization now... what about a combo? for instance:

          Exits
          20. Exit [combo of options, 1,2,3,4 or text TimeExit, ChanelExit] <- select a diferent exit.

          Best,
          Vince.

          Comment


            #6
            Hello vibarco,
            Can you please let me know what do your mean by combo?

            Can you upload a screenshot demonstrating it.
            JoydeepNinjaTrader Customer Service

            Comment


              #7
              Yes sorry,



              A list of exits, no like 1;1;1 is not and optimize parameter, i test and exit individually.

              Best,
              Vince.

              Comment


                #8
                Hello vibarco,
                Are you trying to create an enum?

                If so then please refer to this sample code which further demonstrates it
                JoydeepNinjaTrader Customer Service

                Comment


                  #9
                  Yes Joydeep, i want to create my own enum parameter in the Strategy. Is that posible?

                  Best,
                  Vince.

                  Comment


                    #10
                    Hello Vince,
                    Yes, it is possible to create your custom enum parameters. Please refer to this sample code which further demonstrates it.
                    JoydeepNinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by jaybedreamin, Today, 05:56 PM
                    0 responses
                    3 views
                    0 likes
                    Last Post jaybedreamin  
                    Started by DJ888, 04-16-2024, 06:09 PM
                    6 responses
                    18 views
                    0 likes
                    Last Post DJ888
                    by DJ888
                     
                    Started by Jon17, Today, 04:33 PM
                    0 responses
                    1 view
                    0 likes
                    Last Post Jon17
                    by Jon17
                     
                    Started by Javierw.ok, Today, 04:12 PM
                    0 responses
                    6 views
                    0 likes
                    Last Post Javierw.ok  
                    Started by timmbbo, Today, 08:59 AM
                    2 responses
                    10 views
                    0 likes
                    Last Post bltdavid  
                    Working...
                    X