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 Brevo, Today, 01:45 AM
              0 responses
              6 views
              0 likes
              Last Post Brevo
              by Brevo
               
              Started by aussugardefender, Today, 01:07 AM
              0 responses
              5 views
              0 likes
              Last Post aussugardefender  
              Started by pvincent, 06-23-2022, 12:53 PM
              14 responses
              242 views
              0 likes
              Last Post Nyman
              by Nyman
               
              Started by TraderG23, 12-08-2023, 07:56 AM
              9 responses
              384 views
              1 like
              Last Post Gavini
              by Gavini
               
              Started by oviejo, Today, 12:28 AM
              0 responses
              6 views
              0 likes
              Last Post oviejo
              by oviejo
               
              Working...
              X