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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        217 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        133 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        147 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        233 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        192 views
        0 likes
        Last Post CarlTrading  
        Working...
        X