Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Treasury Notes Price Conversion

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

    Treasury Notes Price Conversion

    2 Year Treasury Notes
    Bars.Instrument = ZT 03-11 Globex
    Close[0] = 109.3203125
    FormatPrice(Close[0]) = 109'102

    5 Year Treasury Notes
    Bars.Instrument = ZF 03-11 Globex
    Close[0] = 117.609375
    FormatPrice(Close[0]) = 117'195

    What is the formula / math to convert the FormatPrice(Close[0]) to Close[0]? Or put another way, convert the string/label price to the decimal price.

    Thanks

    #2
    Hello TajTrades,

    Best is to look at contract specifications for these to see how they format their prices:


    Points ($2,000) and quarters of 1/32 of a point. For example, 109-16 represents 109 16/32, 109-162 represents 109 16.25/32, 109-165 represents 109 16.5/32, and 109-167 represents 109 16.75/32. Par is on the basis of 100 points.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks Ryan,

      I am assuming that within NT there will always be 3 characters/digits following the " ' " character separating the whole number from the fractional part in all treasury quotes. In other words you guys do not leave off the zero anywhere as in 109'120.

      Is this a correct assumption?

      Comment


        #4
        Hi Taj,

        That's correct. All prices for these instruments are formatted for 3 digits after the ^.

        109 ^120 = 109 ^ 12/32 = 109.375
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        152 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        89 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        133 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        127 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        107 views
        0 likes
        Last Post CarlTrading  
        Working...
        X