Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Zero line question ?

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

    Zero line question ?

    Why is it that the zero line on Your Macd indicator goes all the way to the
    right side of the chart ,but Your constant lines always end where price ends ?
    Is there some kind of " PlotStyle.xxxxx " that I can use to change this in the
    Constant line indicator ? thx .

    #2
    Is it possible that the "Calculate on bar close" parameter when applying the indicator for MACD is set to false while the ConstantLine indicator is set to true?
    RayNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Ray View Post
      Is it possible that the "Calculate on bar close" parameter when applying the indicator for MACD is set to false while the ConstantLine indicator is set to true?
      In the snapshot , both are set " on bar close = False " This is the way it's
      always been as long as I've used Ninja ..... Not a programmer ,but I don't
      see anything different in the declarations or code that explain it to me .....
      Attached Files

      Comment


        #4
        T2020, one is a Plot (Constant Line indicator), the other a constant value line (MACD indicator).

        The Plots underlying dataseries is udpated each bar as you move forward with the chart, in contrast the line is being drawn indefinitely at the constant (0 in this case) value.

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          T2020, one is a Plot (Constant Line indicator), the other a constant value line (MACD indicator).

          The Plots underlying dataseries is udpated each bar as you move forward with the chart, in contrast the line is being drawn indefinitely at the constant (0 in this case) value.
          Thanks . I understand . So is there a simple way to change the constantline
          indicator to a Value ? Like in this line :
          Add(new Plot(Color.Navy, PlotStyle.Line, "Line1"));
          If terribly involved , I wouldn't bother . It's just I'd rather this type of indicator- plot...... all the way to the price scale . thanks again .

          Comment


            #6
            You could for sure implement this with just the added lines in the Initialize(), then enter the value in the indicator properties for those -

            Code:
             
            Add(new Line(Color.Navy, 0, "Line1"));
            Add(new Line(Color.Green, 0, "Line2"));
            Add(new Line(Color.DarkViolet,0, "Line3"));
            Add(new Line(Color.Firebrick, 0, "Line4"));

            Comment


              #7
              Thank you very much Bertrand . Works great .

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              663 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              376 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              110 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              575 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              580 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X