Announcement

Collapse
No announcement yet.

spread

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

  • spread

    is there a formula out there that can calculate the spread of an index for me. Thanks Matt

  • #2
    You may be able to do this without an EFS file. Please take a look at this FAQ, and if that doesn't do the trick for you, please provide details on what you are needing.
    Regards,
    Jay F.
    Product Manager
    _____________________________________
    Have a suggestion to improve our products?
    Click Support --> Request a Feature in eSignal 11

    Comment


    • #3
      I believe...

      All you want is...

      PHP Code:

      function main(Symbol2) {
        if (
      Symbol2 != null) {
          return (
      close()-getValue("Close",0,Symbol2));
        }


      Brad Matheny
      eSignal Solution Provider since 2000

      Comment


      • #4
        JayF,

        if I want to trade the spread of the ax z3-dt and nq z3.
        Dotay at 15:40 sell one ax z3-dt and buy two nq z3.

        1. What do I have to enter? ax z3-dt - nq z3?

        2. What do I have to enter if I want to include the eur a0-fx?
        ax z3-dt - nq z3 * eur a0-fx?

        Comment


        • #5
          JayF,

          if I want to trade the spread of the ax z3-dt and nq z3.
          Dotay at 15:40 sell one ax z3-dt and buy two nq z3.

          1. What do I have to enter? ax z3-dt - nq z3?

          2. What do I have to enter if I want to include the eur a0-fx?
          ax z3-dt - nq z3 * eur a0-fx?

          Thanks,

          Tomcat

          Comment


          • #6
            I think I have to enter

            ax z3-dt * nq z3 ???

            And with euro a0-fx?

            Tomcat

            Comment


            • #7
              On second thoughts I think I can give the answer to my self.

              I have to divide : ax z3-dt / nq z3

              Thanks

              Comment


              • #8
                Tomcat
                If you want to calculate the actual value of the spread the symbol would be
                2NQ Z3 -AX Z3-DT
                As to inserting EUR A0-FX in the equation to convert AX Z3-DT in US$ the symbol 2NQ Z3 -AX Z3-DT *EUR A0-FX will not work as the program calculates it sequentially rather than by math rules and at this time parenthesis cannot be used in symbols.
                You could write it as AX Z3-DT *EUR A0-FX -2NQ Z3 taking into consideration that the sign of the spread is actually reversed (should be negative).
                Hope this helps
                Alex

                Comment

                Working...
                X