Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PlotStyle

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

    PlotStyle

    Hi there,

    I am writing a tiny "Indicator" which only purpose is to display Price levels in the Price Pane.

    I want to draw these levels using only horizontal line segments ; PlotStyle.Square draws vertical line segments which I am not interested in, and PlotStyle.Hash doesn't draw continuous horizontal segments as soon as the Width exceeds 1.

    What should I use?

    Thanks in advance
    Dominique

    #2
    Hello,

    I'm not certain I am following - would you be able to post a mock up of what you're trying to accomplish?
    MatthewNinjaTrader Product Management

    Comment


      #3
      OK ... the 1st picture is what the PlotStyle "Square" does.

      But I don't want the vertical lines to plot ... the 2nd picture is what I want to achieve ... how do I do that?

      Thanks in advance
      Attached Files

      Comment


        #4
        From your first screenshot, there is a value on each bar that you are plotting. If you would like to prevent the vertical line from plotting, you would need to explicitly Reset() the plot value for those bars to empty the value.

        A more streamlined method would be using DrawLine() instead of a plot. This will give you control over the exact X and Y values where a line is drawn.
        MatthewNinjaTrader Product Management

        Comment


          #5
          Originally posted by NinjaTrader_Matthew View Post
          From your first screenshot, there is a value on each bar that you are plotting. If you would like to prevent the vertical line from plotting, you would need to explicitly Reset() the plot value for those bars to empty the value.

          A more streamlined method would be using DrawLine() instead of a plot. This will give you control over the exact X and Y values where a line is drawn.
          Thanks for trying ... the vertical lines are drawn because this is what the PlotStyle.Square is designed to do ... PlotStyle.Line draws them a little different, but I don't want them at all.

          PlotStyle.Hash almost does what I want (no vertical lines), but its plots appear as a dash line, instead of a solid line ... this is my (cosmetic) problem.

          No, I don't want to draw lines myself, it is difficult enough to develop good trading strategies, I am not into creating a drawing tool to work around a glaring limitation of NinjaTrader. I am sure a new PlotStyle could be created in a matter of minutes, to do just what I am looking for, and that would benefit all users.

          Comment


            #6
            I have submitted your suggestion for the enhancement of NinjaTrader to our development team and it has been assigned the unique tracking ID # 1759. We appreciate your commitment in helping us to improve NinjaTrader.
            MatthewNinjaTrader Product Management

            Comment


              #7
              Thanks Matthew ... will you let me know when that change is made available, or how can I check its status?

              Comment


                #8
                F6 Hash Style

                Hello,

                Is there a way to plot a "Hash Style" line using the F6 key???

                Thank you,

                Rick

                Comment


                  #9
                  Originally posted by dom993 View Post
                  Thanks Matthew ... will you let me know when that change is made available, or how can I check its status?
                  If there any updates, we will update this thread. You can always check on the status of this feature request by emailing support[at]ninjatrader[dot]com and referencing this feature request ID.
                  MatthewNinjaTrader Product Management

                  Comment


                    #10
                    Originally posted by TRS3042 View Post
                    Hello,

                    Is there a way to plot a "Hash Style" line using the F6 key???

                    Thank you,

                    Rick
                    You can change the dash style by double clicking on the drawn line and changing the "DashStyle"


                    Unfortunately the HashStyle is not available from the drawing tools.
                    MatthewNinjaTrader Product Management

                    Comment


                      #11
                      Thank you.

                      Comment

                      Latest Posts

                      Collapse

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