Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

price line line

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

    #16
    Hello Jason. The PriceLineWH works very well. However, since the 6E went to 5 decimal places, I just see a 1. on the line as opposed to 1.12345 - On the M6E as it's 4 decimal places, I see 1.1234 which is great. I've looked at the code and I can't for the life of me see how I can make it display 5 decimal places for the 6E. Can you help ?

    Comment


      #17
      Hello ZOTICUS,

      Thank you for the post.

      You likely can use FormatPriceMarker for this however you would need to add some code to the script and recompile it.

      There is a sample that shows how toy use 4 decimals in the following page: https://ninjatrader.com/support/help...ub=formatprice

      If you wanted to force it to have 5 you could add that code and change it to N5.

      I look forward to being of further assistance.
      JesseNinjaTrader Customer Service

      Comment


        #18
        Originally posted by ZOTICUS View Post
        Hello Jason. The PriceLineWH works very well. However, since the 6E went to 5 decimal places, I just see a 1. on the line as opposed to 1.12345 - On the M6E as it's 4 decimal places, I see 1.1234 which is great. I've looked at the code and I can't for the life of me see how I can make it display 5 decimal places for the 6E. Can you help ?
        Are you using NT7 or NT8 version of PriceLineWH?

        AFAIK, neither one of these indicators displays the price itself, they only
        draw a horizontal line (or ray) at the last Close price.

        I agree that FormatPrice may provide the solution here -- but, this code,
        would not go into PriceLineWH itself, since that indicator only draws the
        price line. FormatPrice probably needs to be added some where else.

        What indicator are you using to draw/display the price on the drawn line?
        Perhaps the indicator known as LabelHorzLineAlerts?
        Otherwise, can you post a screenshot of what you're seeing?

        You might want to review this and this, which shows a technique whereby
        FormatPriceMarker can provide a universal fix for every price format for every
        instrument for every indicator for every chart, esp for treasury bonds.
        Last edited by bltdavid; 06-05-2020, 01:19 PM.

        Comment


          #19
          Thank you. I discovered that a tool that is bundled inside a DLL was adding the price to a standard line and hence I can't change it. I did look at your code and I couldn't see how you were printing the price - And of course you were not ;-)

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by rbeckmann05, Yesterday, 06:48 PM
          1 response
          12 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
          10 views
          0 likes
          Last Post burtoninlondon  
          Started by AaronKoRn, Yesterday, 09:49 PM
          0 responses
          15 views
          0 likes
          Last Post AaronKoRn  
          Started by carnitron, Yesterday, 08:42 PM
          0 responses
          11 views
          0 likes
          Last Post carnitron  
          Working...
          X