Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How to Alphabetize Plot Parameters ?

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

    How to Alphabetize Plot Parameters ?

    Hi,

    I have an indicator that Plots 15 SMA Lines and would like to know, How do you Alphabetize the Plot Parameters for this Indicators settings within the Code?

    Plot0 ---> Plot0
    Plot1 ---> Plot1
    Plot10 ---> Plot2
    Plot11 ---> Plot3
    Plot12 ---> Plot4
    Plot13 ---> Plot5
    Plot14 ---> Plot6
    Plot2 ---> Plot7
    Plot3 ---> Plot8
    Plot4 ---> Plot9
    Plot5 ---> Plot10
    Plot6 ---> Plot11
    Plot7 ---> Plot12
    Plot8 ---> Plot13
    Plot9 ---> Plot14

    Thank You in Advance.

    Joe

    #2
    Hi Joe,

    This sample can help with parameter sequencing:
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by jmca2000 View Post
      Hi,

      I have an indicator that Plots 15 SMA Lines and would like to know, How do you Alphabetize the Plot Parameters for this Indicators settings within the Code?

      Plot0 ---> Plot0
      Plot1 ---> Plot1
      Plot10 ---> Plot2
      Plot11 ---> Plot3
      Plot12 ---> Plot4
      Plot13 ---> Plot5
      Plot14 ---> Plot6
      Plot2 ---> Plot7
      Plot3 ---> Plot8
      Plot4 ---> Plot9
      Plot5 ---> Plot10
      Plot6 ---> Plot11
      Plot7 ---> Plot12
      Plot8 ---> Plot13
      Plot9 ---> Plot14

      Thank You in Advance.

      Joe
      Your question is not very clear. Do you mean that you want the left hand side Plot names to be arranged in canonical order, so that Plot2, for example lists before Plot 10? etc.?

      Comment


        #4
        Hi koganam,

        Yes, I want the Plot's 0-14 to be listed in that order within the indicators settings were you change the Plot colors.

        Plot0
        Plot1
        Plot2
        Plot3
        etc.

        NOT:

        Plot0
        Plot1
        Plot10
        Plot11

        Thanks again in advance.

        Comment


          #5
          Originally posted by jmca2000 View Post
          Hi koganam,

          Yes, I want the Plot's 0-14 to be listed in that order within the indicators settings were you change the Plot colors.

          Plot0
          Plot1
          Plot2
          Plot3
          etc.

          NOT:

          Plot0
          Plot1
          Plot10
          Plot11

          Thanks again in advance.
          Plot0
          Plot01
          Plot02
          Plot03
          Plot04
          Plot05
          Plot06
          Plot07
          Plot08
          Plot09
          Plot10
          Plot11
          Plot12
          Plot13
          Plot14

          In other words, preface the single digits with a zero.

          The other option is to use "\t"s prefaced to the plot name. The order will be in decreasing number of "\t".

          e,g., \t\Plot14 will be listed last, and \t\t\t\t\t\t\t\t\t\t\t\t\t\tPlot0 will be listed first, with the other ones having an arithmetic progression of "\t" as a preface.

          Comment


            #6
            THANK YOU koganam!

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by geddyisodin, Yesterday, 05:20 AM
            8 responses
            51 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by cmtjoancolmenero, Yesterday, 03:58 PM
            10 responses
            36 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by DayTradingDEMON, Today, 09:28 AM
            4 responses
            24 views
            0 likes
            Last Post DayTradingDEMON  
            Started by George21, Today, 10:07 AM
            1 response
            17 views
            0 likes
            Last Post NinjaTrader_ChristopherJ  
            Started by Stanfillirenfro, Today, 07:23 AM
            9 responses
            25 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X