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 alexstox, 10-16-2018, 03:29 PM
          11 responses
          342 views
          0 likes
          Last Post aligator  
          Started by ageeholdings, 05-01-2024, 05:22 AM
          6 responses
          43 views
          0 likes
          Last Post ageeholdings  
          Started by tony_28217, Today, 07:04 PM
          0 responses
          11 views
          0 likes
          Last Post tony_28217  
          Started by flybuzz, Today, 10:33 AM
          1 response
          9 views
          0 likes
          Last Post flybuzz
          by flybuzz
           
          Started by spencerp92, 10-10-2023, 09:56 AM
          4 responses
          310 views
          0 likes
          Last Post flybuzz
          by flybuzz
           
          Working...
          X