PureBytes Links
Trading Reference Links
|
Try this:
MetaStock -> Tools -> Indicator Builder -> New ->
Copy and paste complete formula between "---8<---" lines.
===============
Yearly % change
===============
---8<-----------------------
{ Yearly % change in price }
{ ©Copyright 2005 Jose Silva.
For personal use only.
http://www.metastocktools.com }
{ User inputs }
yr:=Input("% change for Year [1800~2200]",
1800,2200,2000);
yrNr:=Input("Year: [1]Selected, [2]All",
1,2,1);
plot:=Input("plot: [1]% Change, [2]New Year markers",1,2,1);
{ Start of year }
init:=Cum(1)=2;
nuYear:=Year()<>Ref(Year(),-1) OR init;
{ Data Array }
x:=C;
{ Year's % change }
ch:=(x/ValueWhen(1,nuYear,x)-1)*100;
chYear:=If(Year()=yr,ch,0);
chYear:=ValueWhen(1,chYear<>0 OR init,chYear);
{ Select individual year's % or all }
chPer:=If(yrNr=1,chYear,ch);
{ Plot in own window }
If(plot=1,chPer,nuYear)
---8<-----------------------
==================
Exploration filter
==================
---8<-------------------------
{ Uses default settings in "Yearly % change" indicator }
change:=200; {min % change for default year }
Fml("Yearly % change")>=change
---8<-------------------------
jose '-)
http://www.metastocktools.com
--- In equismetastock@xxxxxxxxxxxxxxx, wai <mwtang@xxxx> wrote:
>
> I would like to write an explorer fomular that can scan stocks that
> had rise more than 200% on a particular year.
> For example : ABC share rise more than 200% from its low in 2000.
> I have try :
>
> year()= 2000 and hhv(h,200) - ref(llv(l,200),-1) >= 2*ref(llv(l,200
),-1)
> But it does not work. I hope someone can help.
> Thanks !
>
> mun wai.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/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/
|