Announcement

Collapse
No announcement yet.

Up/Dn Volume Ratio

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

  • Up/Dn Volume Ratio

    I'm requesting an Up/Down volume ratio indicator. This is an indicator invented by Bill O'Neill and used by Larry McMillan.

    1. - Study Title = Up/Dn Vol, cursor label = Up/Dn Vol
    2. - Non-price Study
    3. - Regular Study (Indicator)
    4. - Detailed description

    *plot study as histogram
    *fixed line at 1.0
    *Periods should be a user input variable, default = 50.
    *For each period,
    UpVol= if Close>= previous close then UpVol=Vol for that bar, otherwise UpVol=0;
    DnVol = if Close<previous close then DnVol = Vol for that bar, otherwise DnVol=1 (actually would be 0, but if 0 can get a divide/0 error).

    * Up/Dn Vol = sum of UpVol for input periods/sum of DnVol for input periods.
    This is what gets plotted

    * should work on all intraday intervals, daily and weekly
    * can test on any symbol with volume

    interpretation.
    if indicator is above 1.0 accumulation is taking place, below 1.0 distribution is taking place.


    __________________

  • #2
    Bigtee:

    I put together your script and placed it in the File Share area. It is in the Specialty Scripts group in the Miscellaneous folder. Name is UpDnVol.efs

    Chris

    Comment


    • #3
      Thanks Chris. This works great. Also like the different colored bars above/below 1.0. Very nice touch!

      Comment


      • #4
        Chris, forgot to also say thanks for putting revision control into your scripts. You are true pro! Hope others follow your lead.

        bigtee

        Comment

        Working...
        X