[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EquisMetaStock Group] Macd Histogram



PureBytes Links

Trading Reference Links

Jose,

Here's a first run of a MACD histogram.

Preston


{MACD HISTOGRAM}
{plots as a histogram}
{with help from Jose Silva}

{ User inputs }
plot:=Input("[1]Line,[2]Histogram",
1,2,2);
signal:=Mov(MACD(),9,S);

{Plot boundaries}
HiMAC:=If(MACD()>0,MACD(),0);
LoMAC:=If(MACD()<0,MACD(),0);
MAC2:=(LoMAC + HiMAC)/2;
MAC4:=(LoMAC + HiMAC)/4;
Base:=0;

even:=Cum(1)/2=Int(Cum(1)/2);
fill1:=If(even,MACD(),MAC2);
fill2:=If(even,MACD(),MAC4);
fill3:=If(even,MACD(),base);
fill4:=If(even,MAC2,MACD());
fill5:=If(even,MAC4,MACD());
fill6:=If(even,base,MACD());
fill7:=If(even,MAC2,base);
fill8:=If(even,MAC4,base);
fill9:=If(even,MAC2,MAC4);

{Plot}
If(plot=1,MACD()and 0,0);
If(plot=2,fill1,MACD());
If(plot=2,fill2,MACD());
If(plot=2,fill3,MACD());
If(plot=2,fill4,MACD());
If(plot=2,fill5,MACD());
If(plot=2,fill6,MACD());
If(plot=2,fill7,MACD());
If(plot=2,fill8,MACD());
If(plot=2,fill9,base);
signal{end}





------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/