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

Show Plot PriceMarker but not Plot line

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

    Show Plot PriceMarker but not Plot line

    Hi

    Is there a way to show a Plot's PriceMarker but not show the Plot line.

    thanks

    #2
    Hello,

    You can set the Plot color to the same color as the background of the chart. This will hide the plot from the chart, but there should be the numeric value and outline of the price marker on the right panel.
    MatthewNinjaTrader Product Management

    Comment


      #3
      thx Mathew

      yes that does as you say, thx for that.

      however is it poss to get some color onto that marker ? perhaps by the FormatPriceMarker override ?

      Comment


        #4
        here is the answer for me.

        use PlotStyle.Hash when adding the Plot

        use the following two statements in the OnBarUpdate override.

        Values[0].Set(yournumber);
        Values[0].Set(1,0);

        the second statement overwrites the prior bar plot value with a zero value, so you should see a horizontal line at the zero level.

        you will get a single plot marker on the current bar at your level and you will still get a colored price marker (using the Hash style means that the markers are not connected to each other, so you get the single plot at your number while all the other plots become zero - if you use the Line style then you would get a vertical line from zero to your number on the current bar, as Ninja connects the zero to your number)

        hope this helps someone
        Last edited by I_Quant; 04-10-2012, 02:22 AM.

        Comment


          #5
          A related question... Is it possible output the plot line, but not the price on the right-axis? (opposite of the initial question.

          Thanks!
          Daniel

          Comment


            #6
            Hi Daniel,

            You can disable this by: right clicking on your chart--> select "Indicators" and set the "Price market(s)" options to false.

            Please let me know if you need further assistance.
            MatthewNinjaTrader Product Management

            Comment


              #7
              Originally posted by neoikon View Post
              A related question... Is it possible output the plot line, but not the price on the right-axis? (opposite of the initial question.

              Thanks!
              Daniel
              The free manual? Very nice if we read it.

              ref: http://www.ninjatrader.com/support/h...icemarkers.htm

              Comment


                #8
                Thanks for the reply, but that doesn't help me.

                I need to individually turn the plots on or off. Not simply turn them all off. Yes, I am very familiar with the manual, koganam.

                Comment


                  #9
                  I would like to show a Price Marker on the actual chart not only on the Y-Axis.

                  It will be useful with Heiken Shi charts as they show more of a trend.

                  Can you clarify the below?

                  I could start with a new plot with Close[0] ?

                  Irvin

                  Comment


                    #10
                    Hello ij001,

                    Thank you for your post.

                    You would disable the price marker via PaintPriceMarkers: http://www.ninjatrader.com/support/h...icemarkers.htm

                    Then use DrawText() at whatever level from the Close[0] or value of the indicator: http://www.ninjatrader.com/support/h...7/drawtext.htm

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by ScottWalsh, Today, 04:29 PM
                    0 responses
                    4 views
                    0 likes
                    Last Post ScottWalsh  
                    Started by rtwave, 04-12-2024, 09:30 AM
                    2 responses
                    21 views
                    0 likes
                    Last Post rtwave
                    by rtwave
                     
                    Started by tsantospinto, 04-12-2024, 07:04 PM
                    5 responses
                    69 views
                    0 likes
                    Last Post tsantospinto  
                    Started by cre8able, Today, 03:20 PM
                    0 responses
                    7 views
                    0 likes
                    Last Post cre8able  
                    Started by Fran888, 02-16-2024, 10:48 AM
                    3 responses
                    49 views
                    0 likes
                    Last Post Sam2515
                    by Sam2515
                     
                    Working...
                    X