PureBytes Links
Trading Reference Links
|
Hi Alan
> I'd be grateful if you could give me a quick explanation of any one
> of your weekly formulas on Jose's Pegasus site.
There is no "quick" explanation. I'll probably go with MACD since it's the easiest. All weekly
formulas (for daily charts) are expansions of simpler formulas for a standard data arry (data and
chart of the same periodicy). ADX is quite a complicated formula to start with so the weekly version
is a nightmare to follow.
I'll now include the formulas I started with for ADX and RSI. MACD you can probably work out for
yourself. The explanation will come later.
Regards
Roy
{RSI Indicator}
A:=Input("Periods",2,99,10);
U:=Wilders(If(C>Ref(C,-1),C-Ref(C,-1),0),A);
D:=Wilders(If(C<Ref(C,-1),Ref(C,-1)-C,0),A);
100-(100/(1+(U/D)));
{MetaStock code written by Equis and published in the Oct99 TASC}
{ADX Raw}
Periods:=Input("Enter time periods",1,100,10);
PlusDM:=If(H>Ref(H,-1) AND
L>=Ref(L,-1),H-Ref(H,-1),
If(H>Ref(H,-1) AND L<Ref(L,-1)
AND H-Ref(H,-1)>Ref(L,-1)-L,
H-Ref(H,-1),0));
DIPlus:=100*Wilders(PlusDM,Periods)/ATR(Periods);
MinusDM:=If(L<Ref(L,-1) AND
H<=Ref(H,-1),Ref(L,-1)-L,
If(H>Ref(H,-1) AND L<Ref(L,-1)
AND H-Ref(H,-1)<Ref(L,-1)-L,
Ref(L,-1)-L,0));
DIMinus:=100*Wilders(MinusDM,Periods)/
ATR(Periods);
DIDif:=Abs(DIPlus - DIMinus);
DISum:=DIPlus + DIMinus;
100*Wilders(DIDif/DISum,Periods);
> Because of AD (Advancing Decline), I've been finding it difficult to
> adapt to the MetaStock formula language. So I've taken the easy way
> out and bought AmiBroker after a comprehensive trial (30 minutes).
>
> The formula language is more like C or Java, so I find it much
> easier. In three hours, I've re-written three months' worth of
> MetaStock code that I sweated blood over. Unfortunately, I can't
> rewrite your write-only formulas, because I don't understand them.
>
> I'm currently using your ADX, RSI - Close, and MACD - Close. I'd be
> grateful if you could select any one of these solid gold nuggets and
> give me an assay (essay?). I already understand the first part,
> where you test whether the data is weekly or daily. (No, I didn't
> work it out for myself, you told me on this newsgroup :-)
>
> Regards,
> Alan
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/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/
|