MACD like technical analysis indicator using Double Exponential Moving 0

Posted on 17, June 2013

in Category SID


Description for MACDDEMA SID 559

MACD like technical analysis indicator using Double Exponential Moving Average (DEMA) instead of EMA

MACD like technical analysis indicator using Double Exponential Moving/sid The logic for this technical analysis indicator:

#MACD like technical analysis indicator using Double Exponential Moving 
#Average (DEMA) instead of EMA
my ($period1,$period2,$smooth)=@_;
#Validate the periods
ValidatePeriods($period1,$period2,$smooth);
#create the columns...
my $macdline = DEMA(Close,$period1)-DEMA(Close,$period2);
my $macds    = DEMA($macdline,$smooth);
my $macdhist = $macdline-$macds;
#rename the columns
my $name="MACDDEMA($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);

0 Comments

Leave a Message