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 sjsj2732, Yesterday, 04:31 AM
        0 responses
        31 views
        0 likes
        Last Post sjsj2732  
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        286 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        283 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        133 views
        1 like
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        91 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Working...
        X