| SID Name | Description | Rating |  | 206 PVO | Percentage Volume Oscillator (PVO) - A MACD like technical analysis applied to Volume. | Not Rated |
 | The logic for this technical analysis indicator: |
#Percentage Volume Oscillator (PVO) - A MACD like technical analysis applied to Volume.
my ($period1,$period2,$smooth)=@_;
#Validate the periods
ValidatePeriods($period1,$period2,$smooth);
#create the columns...
my $macdline = EMA(Volume,$period1)-EMA(Volume,$period2);
my $macds = EMA($macdline,$smooth);
my $macdhist = $macdline-$macds;
#rename the columns
my $name="PVO($period1,$period2,$smooth)";
SetColumnName($macdline , "$name:line");
SetColumnName($macds , "$name:signal");
SetColumnName($macdhist , "$name:hist");
#create the indicator with the columns
return ($macdline,$macds,$macdhist);
|