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

How can I turn off Price Markers for a single Plot?

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

    How can I turn off Price Markers for a single Plot?

    Hi,

    In my indicator I have several plots. I want to be able to turn on and off price markers independently for each plot line depending on the indicator conditions.

    I tried setting Plots[].Pen.PlotColor=transparent, but I can still see the outline of the price marker.

    Is there any way to turn them off?

    Thanks,
    Will.

    #2
    Will, that would unfortunately not be possible on a per individual plot basis. Either price markers would be shown for an indicator or not.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      What property configure price markers to show or not?

      Comment


        #4
        There seems to be no way to do it.

        Comment


          #5
          Originally posted by akushyn View Post
          What property configure price markers to show or not?
          Code:
          PaintPriceMarkers = false; //if you do not want them to show
          You might simply want to look at the Language Reference in the NT Help.

          Comment


            #6
            is that per plot or global flag?

            Comment


              #7
              Originally posted by dontpanic View Post
              is that per plot or global flag?
              See Bertrand's answer earlier: it cannot be done per plot, only per indicator.

              Comment


                #8
                thanks, thats what I thought. In my case it was fine because I didnt want a plot line for my plot, just the marker. So I just did a plot override that did nothing, and then set the price marker for each plot to be transparent if it wasn't required.

                Comment


                  #9
                  Originally posted by koganam View Post
                  See Bertrand's answer earlier: it cannot be done per plot, only per indicator.
                  Again good answer! Thank you.
                  That is what i Need at this time

                  And what property configure Label of the indicator ?
                  Cant find in a list when press ctrl + space...

                  Thank you in advance!
                  Last edited by akushyn; 12-11-2013, 07:28 AM.

                  Comment


                    #10
                    You can customize the label by over riding the ToString() method.

                    Please see the following reference sample for more information on this:

                    MatthewNinjaTrader Product Management

                    Comment


                      #11
                      Originally posted by akushyn View Post
                      Again good answer! Thank you.
                      That is what i Need at this time

                      And what property configure Label of the indicator ?
                      Cant find in a list when press ctrl + space...

                      Thank you in advance!
                      Depending in what you want to do, you can use
                      Code:
                      this.Name = "What you want";
                      or you can override the ToString() method. ref: http://www.ninjatrader.com/support/f...3814#post23814, which is in the Samples subForum

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by habeebft, Today, 07:27 AM
                      1 response
                      11 views
                      0 likes
                      Last Post NinjaTrader_ChristopherS  
                      Started by AveryFlynn, Today, 04:57 AM
                      1 response
                      11 views
                      0 likes
                      Last Post NinjaTrader_Erick  
                      Started by Max238, Today, 01:28 AM
                      4 responses
                      37 views
                      0 likes
                      Last Post Max238
                      by Max238
                       
                      Started by r68cervera, Today, 05:29 AM
                      1 response
                      9 views
                      0 likes
                      Last Post NinjaTrader_ChelseaB  
                      Started by geddyisodin, Today, 05:20 AM
                      1 response
                      11 views
                      0 likes
                      Last Post NinjaTrader_Gaby  
                      Working...
                      X