PureBytes Links
Trading Reference Links
|
Bill
----- Original Message -----
From: "Jose" <josesilva22@xxxxxxxxx>
To: <equismetastock@xxxxxxxxxxxxxxx>
Sent: Saturday, April 03, 2004 7:27 AM
Subject: Re: [EquisMetaStock Group] Weekly MACD histogram
>
> Bill, just simply go here:
> http://users.bigpond.com/prominex/pegasus.htm#roy
>
> Roy has gone through a lot of trouble to create accurate weekly
> indicators for daily charts. Forget the complexity, and just copy and
> paste the formulae into MetaStock.
>
> jose '-)
For a more basic version try this. It still uses Jose's "Calendar Week counter" for the greatest
accuracy with any data gaps. Check it's accuracy against the canned MACD() indicator on any weekly
periodicy chart.
Roy
{Weekly MACD - Close Basic}
{© 2004 Roy Larsen, rlarsen@xxxxxxxxxxxxxx}
{for use on daily charts with
Jose Silva's "Calendar Week counter"}
N:=Input("Daily MACD Signal Periods",1,19,9);
G:=LastValue(Highest(Sum(DayOfWeek()=
ValueWhen(2,1,DayOfWeek()),5))=5);
J:=Fml("Calendar Week counter");
J:=Abs(J-ValueWhen(2-G,1,J)); J:=G OR J;
K:=ValueWhen(1,J,ValueWhen(2-G,1,C));
X:=0.15; Y:=0.075; N:=2/(N+1);
X:=If(Cum(J>0)=1,K,ValueWhen(1,J,PREV)*(1-X)+K*X);
Y:=If(Cum(J>0)=1,K,ValueWhen(1,J,PREV)*(1-Y)+K*Y);
R:=X-Y;
Z:=If(Cum(J>0)=1,R,ValueWhen(1,J,PREV)*(1-N)+R*N);
R; {MACD}
Z; {Signal}
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/
|