Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Horizontal Line with Price aor Text listed

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

    #16
    For interest rate instruments, price is quoted in fractions like 1/32nds or 1/16ths. This indicator displays the decimal equivalent. Can it be modified to display the value from the Y axis without converting it to decimal?

    Thanks.

    Comment


      #17
      This is a feature often requested.

      I also want to know if there is a supported version of FormatPriceMarker() that can format prices of interest rate instruments that way?

      Thanks.
      Pi
      ninZa
      NinjaTrader Ecosystem Vendor - ninZa.co

      Comment


        #18
        SenkHere, the script could be modified, but you would need to convert from decimal to the fractional equivalent, rather than preventing a conversion to decimal.

        Pi, there is not an official pre-loaded indicator that will do this, although it certainly would be useful to see one created and uploaded to the Indicators forum.
        Dave I.NinjaTrader Product Management

        Comment


          #19
          Hi Dave,

          I'm not well versed with the programming part, I understand the logic however. The decimals need to be converted and formatted to the fractional notation (1/16ths or 1/32nds) based on the instrument or a new indicator property. Can someone please update this indicator to achieve this?

          Thanks.

          Comment


            #20
            Hello,

            thank you for posting this.

            But I can´t find - not in the parameters but also not in the script - where to set fontsize and color(?)

            Thank you
            Tony

            Originally posted by NinjaTrader_Dave View Post
            I've got another one here, created by a member of our development team, that may provide what you are looking for even more precisely. This indicator will automatically plot the price-axis value of the horizontal line, and you can set a text tag of your choosing in the line properties window. This will allow you to use different text and price markers for each line that you draw.

            Comment


              #21
              Hello tonynt,

              The key is in the call to the graphics.DrawString() method. This method takes a Font object and a Brush object as inputs, so you should be able to change what is being passed in here to edit the font, size, color, and other properties.

              For more information about graphics.DrawString(), please see the link below, which also includes links for more information on Font and Brush objects:
              https://msdn.microsoft.com/en-us/lib...vs.110%29.aspx
              Dave I.NinjaTrader Product Management

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by pibrew, Today, 06:37 AM
              0 responses
              1 view
              0 likes
              Last Post pibrew
              by pibrew
               
              Started by rbeckmann05, Yesterday, 06:48 PM
              1 response
              14 views
              0 likes
              Last Post bltdavid  
              Started by llanqui, Today, 03:53 AM
              0 responses
              6 views
              0 likes
              Last Post llanqui
              by llanqui
               
              Started by burtoninlondon, Today, 12:38 AM
              0 responses
              11 views
              0 likes
              Last Post burtoninlondon  
              Started by AaronKoRn, Yesterday, 09:49 PM
              0 responses
              15 views
              0 likes
              Last Post AaronKoRn  
              Working...
              X