Announcement

Collapse
No announcement yet.

Volume formula question

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

  • Volume formula question

    Hello,

    I am trying to track the average volume of a stock throughout the day (intraday).

    For example if AMGN has an avg volume of 10.4M ... then I would like to know how much of (what % of) that has been traded by say 10:30 or 12:00 etc.

    So say that AMGN has 7Mill shares traded by 10:45 then the formula would state UnusualVolume/%Volume (whatever the name) would say .67 and if by 12 noon it was 12 Mill it would say 1.15 ... If I could incorporate this into a column on the quote sheet it would allow me to quickly scan my "basket" stocks and see which ones have low or high volume intraday.

    Does this make sense. If any one has used qcharts, they have a setting/tool that does this and is called "UnusualVolume". This is what I am trying to replicate.

    I scanned through the posts in here and only found one that mentioned something like this "onpacevolumeratio.efs"

    Does this .efs exist? and if so where can I get it?
    If not is there a way to set this up?

    I am fairly new to esignal and I am not very knowledgeable with programming language (formula wizard).

    Thanks in advance.
    LW212

  • #2
    What time period do you want to average the volume over - last 5 days, maybe?

    Also, what time interval do you run?

    This has been done before, but is easy to recreate.

    I may not be able to get to it today, so if some one else can, great, if not I''ll look at it over the weekend.

    Comment


    • #3
      volume formula

      Hey david,

      I am really trying to recreate what I had on qcharts...or something very similar.

      I would think the average volume over 30 days or even 60 days.

      I use many different time intervals on charts 1, 3, 13, etc .. I was hoping for something that could be created to where at whatever time it is during that specific day, I could just detect if it is below, avg, above the average daily volume...Something that could be added into the quote box...or window above L2 box.

      If formulas have to be on charts, and the formula has to be set to a specific time interval of a chart intraday ... I would guess 3 min would be the best. I don't understand how the formulas are set...so sorry to seem so ignorant.

      Thanks for replying and looking into this.
      LW212

      Comment


      • #4
        Sounds like fun..

        I need to brush up on my looping to create the 60/30 day avg vol, but I have some code I can make work.

        Look for something over the weekend.

        Comment


        • #5
          Re: Reply to post 'Volume formula question'

          See if this plots what you want, set up as a 30 period avg of the MA

          function preMain(){
          setPriceStudy(false);
          setPlotType(PLOTTYPE_HISTOGRAM);
          }
          var volLen=30;
          var volSum=0;
          var vSum = new Array;

          function main(volLen){

          if(volLen==null)volLen=30;
          volSum=0;
          vSum = volume(0,-volLen)

          if(vSum==null)return;

          for (i = 0; i < volLen; ++i) {
          volSum += vSum[i];
          }
          volAvg = volSum/volLen;

          return new Array(volume(), volAvg);

          }

          Comment

          Working...
          X