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 f.saeidi, Today, 08:03 AM
                    0 responses
                    3 views
                    0 likes
                    Last Post f.saeidi  
                    Started by cre8able, 04-17-2024, 04:16 PM
                    7 responses
                    64 views
                    0 likes
                    Last Post NinjaTrader_Gaby  
                    Started by Aviram Y, 08-09-2023, 09:04 AM
                    11 responses
                    299 views
                    0 likes
                    Last Post arjandezeeuw  
                    Started by Christopher Leggit, 02-15-2024, 09:00 AM
                    3 responses
                    47 views
                    0 likes
                    Last Post rdtdale
                    by rdtdale
                     
                    Started by DavidHP, Today, 07:56 AM
                    0 responses
                    4 views
                    0 likes
                    Last Post DavidHP
                    by DavidHP
                     
                    Working...
                    X