Announcement

Collapse
No announcement yet.

NOB Spread

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

  • NOB Spread

    Hi

    The following is the spread formula we use for the NOB Spread (Notes
    Over Bonds)

    We would like to convert it to esignal format.

    Thank you

    Value1= fracportion (close data1-close data2);
    Value2= Intportion (close data1-close data2);
    Value3= Value1*32;
    Value4=((Value2 *32)+ Value3);
    Plot1 (Value4)

  • #2
    Alex can you take a look at this?

    Alex can you take a look at the previous post?.

    I do not beleive is neccessary and EFS , just the usual formula for sperad right in chart.

    Did I missed something in terms of 32/ ?
    Fabrizio L. Jorio Fili

    Comment


    • #3
      Fabrizio
      In this case an efs is actually necessary because using a straight symbol spread will return a value in decimals rather than in 32nds (the values will be correct though).
      Just as an example run the enclosed NOB spread script on a ZN chart. This will not plot anything on the chart itself but returns to the Cursor Window the spread expressed in 32nds and a half (ie the format for ZN)

      PHP Code:
      function preMain() {
          
      setPriceStudy(true);
          
      setStudyTitle("NOB");
          
      setCursorLabelName("NOB");
            
      }
      function 
      main() {

      var 
      ZN close(0,-1,"ZN H4");
      var 
      ZB close(0,-1,"ZB H4");
      var 
      NOB formatPriceNumber(ZN-ZB);

      return 
      NOB;

      In the chart below I plot ZN H4 as the primary symbol, ZB H4 as the green overlay and run the NOB spread (blue value in the Cursor Window). As you can see the value at the cursor is 1255 ie 1 25/32 and 1/2.
      In the next chart I instead plot it as a symbol spread and it returns 1.79 which per se is correct as it translates to 1 51/64 (ie 1 25/32 and a half in CBOT lingo) but is not very usable IMHO by treasury traders
      Alex



      Comment


      • #4
        AMOF I'v Missed something on 32/.

        Thanks
        Fabrizio L. Jorio Fili

        Comment


        • #5
          Thank you for the response..

          Comment


          • #6
            BTS
            FYI with the new 7.6 (build 634) release spreads should now display in the appropriate format. This means that in the case of the NOB spread it will now plot it in 32nds (see image below)
            Alex

            Comment

            Working...
            X