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

[EquisMetaStock Group] Re: Highest & Lowest Close value within a specific time frame



PureBytes Links

Trading Reference Links

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

{ Adapted from Intraday time filter }
{ Plots Hi/Lo within user-input time period }
{ http://users.bigpond.com/prominex/pegasus.htm }

StHour:=Input("start Hour",0,23,9);
StMin:=Input("start Minute",0,59,0);
EnHour:=Input("end Hour",0,23,10);
EnMin:=Input("end Minute",0,59,0);

start:=Hour()>StHour
 OR Hour()=StHour AND Minute()>=StMin;
end:=Hour()<EnHour
 OR Hour()=EnHour AND Minute()<=EnMin;

period:=start
 AND (end OR (start AND Alert(start=0,2)));
Hi:=Highest(ValueWhen(1,period,H));
Lo:=Lowest(ValueWhen(1,period,L));

Hi;Lo

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

jose '-)


--- In equismetastock@xxxxxxxxxxxxxxx, stenrique_ng <no_reply@xxxx> 
wrote:
> Hi
> 
> I am a newbie to this group, I am wondering if anyone can help me 
out 
> on a System Testing problem. I need a formula which is able to 
obtain 
> the highest & lowest CLOSE over a period of time, says 1 hour. I 
have 
> tried using the HHV and LLV but the problem is that these functions 
> shift their examination periods according to time. What I require is 
> simply to extract the above-mentioned information based on a fixed 
> period such as between 9 am. to 10 am. each day.
> 
> Thanks in advance.
> 
> Regards,
> Stenrique



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/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/