PureBytes Links
Trading Reference Links
|
Hey Jose, how would I enter this into Metastock, I
have 9.0. Is this an indicator? and will it de-trend a
stock so as to reveal the tops and bottoms?
Kindest Regards,
Martin.
> { User inputs }
> pds1:=Input( "SMA 1 periods",1,252, 5);
> pds2:=Input( "SMA 2 periods",2,2520, 21);
> type:=Input( "use: [1]Price(Low) ,
> [2]Stoch(5,3) ",1,2,1);
> plot:=Input( "plot: [1]Lows, [2]Signals", 1,2,1);
>
> { Indicators }
> SMA1:=Mov(C, pds1,S);
> SMA2:=Mov(C, pds2,S);
>
> { Data array }
> dat:=If(type= 1,L,Stoch( 5,3));
>
> { SMA crossover signals }
> entry:=Cross( SMA1,SMA2) ;
> exit:=Cross( SMA2,SMA1) ;
> signals:=entry- exit;
>
> { Price lows at crossovers }
> Lo1:=ValueWhen( 1,entry,LowestSi nce(1,entry, dat));
> Lo2:=ValueWhen( 1,entry,LowestSi nce(2,entry, dat));
>
> { Plot price lows on chart, all else in own window }
> If(plot=1,Lo1, 0);
> If(plot=1,Lo2, signals)
____________________________________________________________________________________
No need to miss a message. Get email on-the-go
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/equismetastock/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:equismetastock-digest@xxxxxxxxxxxxxxx
mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|