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.
__________________
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.
__________________
Comment