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

Seeking help with the GRTMultiLine Indicator

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

    Seeking help with the GRTMultiLine Indicator

    I like this indicator, but don’t fully understand how to apply and modify this indicator.
    Here are my questions.
    1. Does anyone have experience with this indicator?
    2. Can this indicator be applied to Automated Trading?
    3. The lines that are displayed on the chart, do not have any labels. How do you add line labels to the program?
    4. Lastly, if you open up the NinjaScrip and go to lines 95 through 120, could someone please explain the purpose of this part of the program.

    if ( lineColor != Plots[0].Pen.Color || lineColor != Plots[5].Pen.Color
    || lineColor != Plots[8].Pen.Color || lineColor != Plots[15].Pen.Color
    || lineColor != Plots[18].Pen.Color || lineColor != Plots[20].Pen.Color )
    {
    Plots[0].Pen.Color = lineColor;
    Plots[1].Pen.Color = lineColor;
    Plots[2].Pen.Color = lineColor;
    Plots[3].Pen.Color = lineColor;
    Plots[4].Pen.Color = lineColor;
    Plots[5].Pen.Color = lineColor;
    Plots[6].Pen.Color = lineColor;
    Plots[7].Pen.Color = lineColor;
    Plots[8].Pen.Color = lineColor;
    Plots[9].Pen.Color = lineColor;
    Plots[10].Pen.Color = lineColor;
    Plots[11].Pen.Color = lineColor;
    Plots[12].Pen.Color = lineColor;
    Plots[13].Pen.Color = lineColor;
    Plots[14].Pen.Color = lineColor;
    Plots[15].Pen.Color = lineColor;
    Plots[16].Pen.Color = lineColor;
    Plots[17].Pen.Color = lineColor;
    Plots[18].Pen.Color = lineColor;
    Plots[19].Pen.Color = lineColor;
    Plots[20].Pen.Color = lineColor;
    }

    Thanks,
    Michael in Michigan
    Attached Files

    #2
    Michael, we would have unfortunately no experience with this custom study - it would be best to contact the author who origignally developed it.

    The part you cited just set the lines plot color to the user input LineColor from the UI, so you can change them all with passing one color in, instead of manually change each to your color input desired.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks Bertrand.
      I understand that it has to do with line color. But if you use all 21 lines (0 to 20), why does the first part of the "IF" statement only address these lines [0], [5], [8], [15], [18] and [20]? I can't make sense why some lines are here and some are not.

      if ( lineColor != Plots[0].Pen.Color || lineColor != Plots[5].Pen.Color
      || lineColor != Plots[8].Pen.Color || lineColor != Plots[15].Pen.Color
      || lineColor != Plots[18].Pen.Color || lineColor != Plots[20].Pen.Color )

      Best regards,
      Michael in Michigan

      Comment


        #4
        Hello again Bertrand,

        I forgot to mention, I did try to contact the originator, but he has not responded yet.

        Best regards,
        Michael in Michigan

        Comment


          #5
          I see what you're saying Michael, but would unfortunately not have an explanation at this time for the reason.
          BertrandNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by judysamnt7, 03-13-2023, 09:11 AM
          4 responses
          57 views
          0 likes
          Last Post DynamicTest  
          Started by ScottWalsh, Today, 06:52 PM
          4 responses
          35 views
          0 likes
          Last Post ScottWalsh  
          Started by olisav57, Today, 07:39 PM
          0 responses
          7 views
          0 likes
          Last Post olisav57  
          Started by trilliantrader, Today, 03:01 PM
          2 responses
          19 views
          0 likes
          Last Post helpwanted  
          Started by cre8able, Today, 07:24 PM
          0 responses
          9 views
          0 likes
          Last Post cre8able  
          Working...
          X