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

[EquisMetaStock Group] Re: 52 week High/Low Exploration



PureBytes Links

Trading Reference Links


Try this:


MetaStock -> Tools -> The Explorer -> New
Copy and paste formulae below.


=================
True 52-Week Lows
=================
---8<---------------------------

            52-Week true Lows

 *Input today's data date in filter section!*

Only stocks trading since 52 weeks ago are considered candidates for 
this exploration.
Rem out code {AND V>0} in filter section to explore for non-volume 
instruments, such as indices and Forex.

{ ©Copyright 2005 Jose Silva }
{ http://users.bigpond.com/prominex/pegasus.htm }

------------------

Column A: Close

CLOSE

------------------

Column B: % change

{ % change from previous Close }
Int((C/Ref(C,-1)-1)*1000-.5)/10

------------------

Column C: $'000

{ today's turnover in $'000 }
Int((MP()*V+500)/1000)

------------------

Filter:

{ Today's data date, user input section }

day:= 03;     { today (1~31)          }
mth:= 01;     { current month (1~12)  }
yr:= 2005;    { current year, eg 2005 }

{ *********************************** }

active:=Year()>yr-1
 OR (Year()=yr-1 AND (Month()>mth
  OR Month()=mth AND DayOfMonth()>=day));
start:=active AND Alert(active=0,2);

x:=
DayOfMonth()=day
AND Month()=mth
AND Year()=yr
AND Highest(start)
AND C<Ref(LowestSince(1,start,C),-1)
AND V>0

Alert(x,10)

---8<---------------------------




==================
True 52-Week Highs
==================
---8<---------------------------

            52-Week true Highs

 *Input today's data date in filter section!*

Only stocks trading since 52 weeks ago are considered candidates for 
this exploration.
Rem out code {AND V>0} in filter section to explore for non-volume 
instruments, such as indices and Forex.

{ ©Copyright 2005 Jose Silva }
{ http://users.bigpond.com/prominex/pegasus.htm }

------------------

Column A: Close

CLOSE

------------------

Column B: % change

{ % change from previous Close }
Int((C/Ref(C,-1)-1)*1000+.5)/10

------------------

Column C: $'000

{ today's turnover in $'000 }
Int((MP()*V+500)/1000)

------------------

Filter:

{ Today's data date, user input section }

day:= 03;     { today (1~31)          }
mth:= 01;     { current month (1~12)  }
yr:= 2005;    { current year, eg 2005 }

{ *********************************** }

active:=Year()>yr-1
 OR (Year()=yr-1 AND (Month()>mth
  OR Month()=mth AND DayOfMonth()>=day));
start:=active AND Alert(active=0,2);

x:=
DayOfMonth()=day
AND Month()=mth
AND Year()=yr
AND Highest(start)
AND C>Ref(HighestSince(1,start,C),-1)
AND V>0;

Alert(x,10)

---8<---------------------------


jose '-)



--- In equismetastock@xxxxxxxxxxxxxxx, "allbos_13" <allbos_13@xxxx> 
wrote:
> 
> 
> Hi,
> I need help to write formula that will filter
> all stocks that broke 52 week High or Low
> within last 10 days.
> I would appreciate any kind of help.
> Thanks in advance,
> Gordan





------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/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/