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 burtoninlondon, Today, 12:38 AM
          0 responses
          10 views
          0 likes
          Last Post burtoninlondon  
          Started by AaronKoRn, Yesterday, 09:49 PM
          0 responses
          14 views
          0 likes
          Last Post AaronKoRn  
          Started by carnitron, Yesterday, 08:42 PM
          0 responses
          11 views
          0 likes
          Last Post carnitron  
          Started by strategist007, Yesterday, 07:51 PM
          0 responses
          14 views
          0 likes
          Last Post strategist007  
          Started by StockTrader88, 03-06-2021, 08:58 AM
          44 responses
          3,983 views
          3 likes
          Last Post jhudas88  
          Working...
          X