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

Re: [EquisMetaStock Group] Re: explorer fomular ?



PureBytes Links

Trading Reference Links

This will also work

cola
c                                               {gives close as on 1/1/2001}

colb
ROC(LLV(L,1),1,%)      {gives % change from lowest value in 2000 to yearly
close}


colc
Ref(C,-1)                                  (gives close as on 1/1/2000)

cold
LLV(L,1)                                 (gives lowest low value in 2000)

filter
colb>200




in options
click specific date
1/1/2001

in exploration periodicity
yearly

ok


note: L in LLV can be changed to C to find securities which have apriciated
more than 200% during the year rather than change of 200 % or more from
lowest low value .
Safdar
----- Original Message -----
From: "Jose Silva" <josesilva22@xxxxxxxxx>
To: <equismetastock@xxxxxxxxxxxxxxx>
Sent: Friday, November 25, 2005 7:53 AM
Subject: [EquisMetaStock Group] Re: explorer fomular ?


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 Links


















------------------------ 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/