Announcement

Collapse
No announcement yet.

Volume

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

  • Volume

    Can anyone help me change the volume.efs for multiple securities so that it will plot the difference instead of the sum? For instance,
    if I were to chart, (MSFT + LU) - (XOM + GE) the volume.efs will only add the volume for all four instead of subtracting the two sets of securities. Can someone please help me with this?
    Thanks

  • #2
    Curt
    You can find an example of how to do it in this thread.
    Alex

    Comment


    • #3
      Volume

      Alex,
      Thanks for the reply, but this is what I came up with.

      function main() {
      var MSFT = volume(0, sym("msft"));
      var LU = volume(0, sym("lu"));
      var XOM = volume(0, sym("xom"));
      var GE = volume(0, sym("ge"));
      var Vol = MSFT + LU - XOM + GE;
      return Vol;
      }

      How can I edit this to work for these four securities?
      thanks
      Curt

      Comment


      • #4
        Curt
        I am not sure I understand what you are asking. If you run that script it will return the total volume as calculated by the equation MSFT + LU - XOM + GE.
        If you look at the image below you will see that the value for Friday is 106,357,690 which is in fact the result of 69439490 + 38562200 - 24147600 + 22503600 ie the volumes of the individual symbols
        Alex

        Comment


        • #5
          Volume

          Alex,
          I wasn't able to get it to work. When I tried running it, I got a syntax error and says------ line 2: Parameter Number 2 of Function volume is invalid.
          I'm not sure how to fix it.
          thanks
          Curt

          Comment


          • #6
            Curt
            What version of eSignal are you running? That formula uses EFS2 functions and requires version 7.9 or later
            Alex

            Comment


            • #7
              Volume

              Alex,
              I'm only able to run 7.8 on my system. Is there something else that I can do in order for it to work. I won't be able to install 7.9 until later next month.
              Thanks
              Curt
              Last edited by cjazz1; 10-23-2005, 01:49 PM.

              Comment


              • #8
                Curt
                In the mean time you can use the following (which is based on the EFS1 functions). It will not provide you with the full syncronization offered by the EFS2 sym() function but for the most part it should return similar results (depending on symbols and intervals used)
                Alex

                PHP Code:
                function main() { 
                var 
                MSFT volume(0"msft"); 
                var 
                LU volume(0"lu");
                var 
                XOM volume(0"xom");
                var 
                GE volume(0"ge"); 
                var 
                Vol MSFT LU XOM GE
                return 
                Vol

                Comment


                • #9
                  Volume

                  Alex,
                  I don't get accurate calculations for this efs in a one minute interval chart. Even when I add all 4 securities. How else can I edit the code in order to improve the efs.
                  thanks again,

                  Curt

                  Comment


                  • #10
                    Curt
                    The appropriate solution is to upgrade to 7.9.1
                    Alex

                    Comment


                    • #11
                      Volume

                      Alex,
                      My AMD Athlon has issues with 7.9 1. Could I possibly install the software components that will allow me to access EFS2. For instance, download a custom 7.9 1 and manually install the files
                      instead of installing the whole program?

                      thanks
                      Curt

                      Comment


                      • #12
                        Curt
                        I don't believe such an option is available however you may want to check with eSignal's support.
                        Alex

                        Comment


                        • #13
                          Volume

                          Thanks Alex for helping me to get this far. I'll call tech dept. first thing tomorrow.
                          thanks again,
                          Curt

                          Comment

                          Working...
                          X