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

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.
        BertrandNinjaTrader Customer Service

        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"));
            BertrandNinjaTrader Customer Service

            Comment


              #7
              Thank you very much Bertrand . Works great .

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by chbruno, 04-24-2024, 04:10 PM
              4 responses
              50 views
              0 likes
              Last Post chbruno
              by chbruno
               
              Started by TraderG23, 12-08-2023, 07:56 AM
              10 responses
              398 views
              1 like
              Last Post beobast
              by beobast
               
              Started by lorem, Yesterday, 09:18 AM
              5 responses
              20 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by WHICKED, Today, 12:56 PM
              2 responses
              15 views
              0 likes
              Last Post WHICKED
              by WHICKED
               
              Started by Felix Reichert, Today, 02:12 PM
              0 responses
              4 views
              0 likes
              Last Post Felix Reichert  
              Working...
              X