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

[EquisMetaStock Group] Re: Help



PureBytes Links

Trading Reference Links

Try this MS indicator:

========================
Highs/Lows within period
========================
---8<------------------------------------

{Plots Highs/Lows within user-input date period}

{©Copyright 2004~2005 Jose Silva
 The grant of this license is for personal use
 only - no resale or repackaging allowed.
 All code remains the property of Jose Silva.
 http://www.metastocktools.com }

{ Date inputs }
StDay:=Input("start Day",1,31,1);
StMnth:=Input("start Month",1,12,1);
StYear:=Input("start Year",1800,2200,2004);
EnDay:=Input("end Day",1,31,31);
EnMnth:=Input("end Month",1,12,12);
EnYear:=Input("end Year",1800,2200,2004);

{ Restrict to selected period }
start:=Year()>StYear
 OR (Year()=StYear AND (Month()>StMnth
 OR Month()=StMnth AND DayOfMonth()>=StDay));
end:=Year()<EnYear
 OR (Year()=EnYear AND (Month()<EnMnth
 OR Month()=EnMnth AND DayOfMonth()<=EnDay));

{ High/Low for selected period }
period:=start AND end;
Hi:=Highest(ValueWhen(1,period,H));
Lo:=Lowest(ValueWhen(1,period,L));

{ Enable below to restrict plot to year }
{plot:=LastValue(BarsSince(end));
 Hi:=Ref(Ref(Hi,-plot),plot);
 Lo:=Ref(Ref(Lo,-plot),plot);}

{ Plot on price chart }
Hi;Lo

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


jose '-)
http://www.metastocktools.com



--- In equismetastock@xxxxxxxxxxxxxxx, "paulyew2003" <paulyew2003@xxxx
> wrote:
> Hi 
> 
> I need help in writing this formula into metastock.
> 
> Suppose Stock A 1 year high from 1/1/04-31/12/04 was 1.20. Stock A 
> made that 1.20 year high on 31/1/04. On 2/10/05 it made a 52 weeks 
> high at 1.15. On 1/5/05 it closes higher at 1.30 which is higher
> than its 2004 year high. 
> 
> I like to write a formula that shows a signal if today's high is 
> higher than 2004 high. What i am looking at is not a close higher
> than its 52 week high but higher that 2004 hi.If i ran a 52 weeks
> high scan, the explorer would not show that today's close is higher
> than its 2004 high.
> 
> Please help.
> 
> Thank you.




------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/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/