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 frslvr, 04-11-2024, 07:26 AM
          8 responses
          111 views
          1 like
          Last Post NinjaTrader_BrandonH  
          Started by stafe, 04-15-2024, 08:34 PM
          10 responses
          44 views
          0 likes
          Last Post stafe
          by stafe
           
          Started by rocketman7, Today, 09:41 AM
          3 responses
          8 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by traderqz, Today, 09:44 AM
          2 responses
          5 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by rocketman7, Today, 02:12 AM
          7 responses
          31 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X