PureBytes Links
Trading Reference Links
|
Try this:
---8<----------------
StDay:= 02; { Past Day, 1~31 }
StMnth:=09; { " Month, 1~12 }
StYear:=2003; { " Year, eg 2004 }
threshold:=10; { Minimum % move }
start:=Year()>StYear
OR (Year()=StYear AND (Month()>StMnth
OR Month()=StMnth AND DayOfMonth()>=StDay));
RefDay:=start AND Alert(start=0,2);
RefDayClose:=LastValue(ValueWhen(1,RefDay,C));
PercentMove:=(C/RefDayClose-1)*100;
PercentMove>threshold
---8<----------------
This line of code:
RefDay:=start AND Alert(start=0,2);
... is taken from one of many MetaStock tricks developed by Roy.
In the first issue of the MetaStock newsletter, Roy explains the
benefits of using Alert() instead of Ref().
jose '-)
--- In Metastockusers@xxxxxxxxxxxxxxx, Mohamed Kamar <mkamar2002@xxxx>
wrote:
> Hi
>
> The formula I want is:
> To explore stock prices that have moved more thant
> ten percent in 2 September 2003.
>
> Any help would be greately appreciated.
>
> Kamar
------------------------ 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/zMEolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Metastockusers/
<*> To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|