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

Re: [EquisMetaStock Group] Re: High - Low Monthly



PureBytes Links

Trading Reference Links

Thanks Josè :-)
----- Original Message -----
From: Jose
Sent: Saturday, January 22, 2005 7:51 PM
Subject: [EquisMetaStock Group] Re: High - Low Monthly


Try this MS indicator:

==============================
Hi/Lo/Close of selected period
==============================
---8<-------------------------

{ Hi/Lo/Close of specified date }
{ http://www.metastocktools.com }

{ Date inputs }
StDay:=Input("start Day",1,31,1);
StMnth:=Input("start Month",1,12,12);
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);

{ Selected date 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));
date:=
start AND (end OR (start AND Alert(start=0,2)));

{ Hi/Lo/Close for date period }
Hi:=Highest(ValueWhen(1,date,H));
Lo:=Lowest(ValueWhen(1,date,L));
Cl:=
ValueWhen(1,date=0 AND Alert(date,2),Ref(C,-1));

{ Plot on price chart }
Hi;Lo;Cl

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

jose '-)


--- In equismetastock@xxxxxxxxxxxxxxx, "Vincenzo Pace" <vyncy68@xxxx>
wrote:
> Hello 
> exists a formula  for being able to find which has been the maximum
> value, the closing or the minimal value of a precise month (es. the
> maximum of the month of December 2004)?
> Thanks





Yahoo! Groups Links