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

[EquisMetaStock Group] Re: Pivot Points



PureBytes Links

Trading Reference Links

> dia:=Hour()>=17 AND Ref(Hour(),-1)<17;

One could probably get rid of any null bars produced by the code above, 
with the replacement/addition of a time latch.  Here is an example of 
the type of code:

===========
Time filter
===========
---8<---------------------------

{Intraday time filter}
{Plots +1 signal within user-input time period}
{http://www.metastocktools.com}

StHour:=Input("start Hour",0,23,10);
StMin:=Input("start Minute",0,59,1);
EnHour:=Input("end Hour",0,23,17);
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;

start AND (end OR (start AND Alert(start=0,2)))

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

jose '-)



--- In equismetastock@xxxxxxxxxxxxxxx, "Roy Larsen" <rlarsen@xxxx> 
wrote:
> Hi TaoTrader
> 
> Here's a quick and dirty way of doing what you suggest. I'm sure 
there are a dozen other ways to do the same thing. Just be careful with 
this variation as the indicator will return N/A if there are no bars for 
5pm and later. The timing mechanism is about as basic as you can get. 
Indicator courtesy of Daytraderteam.
> 
>   {Daily Pivot Points TaoTrader}
> dia:=Hour()>=17 AND Ref(Hour(),-1)<17;
> yestHi:= Ref(HighestSince(1,dia,H),-1);
> yestLo:= Ref(LowestSince(1,dia,L),-1);
> yesclo:= Ref(CLOSE,-1);
> Pp:=(yesthi+yestlo+yesclo)/3;
> r1:=(2*pp)-yestlo;
> s1:=(2*pp)-yesthi;
> r2:=pp+(r1-s1);
> s2:=pp-(r1-s1);
> ValueWhen(1,D,r2);
> ValueWhen(1,D,r1);
> ValueWhen(1,D,pp);
> ValueWhen(1,D,s1);
> ValueWhen(1,D,s2);
> 
> Kind regards
> 
> Roy Larsen
> www.metastocktips.co.nz
> 
> 
> 
> 
> ----- Original Message ----- 
> From: TaoTrader 
> To: equismetastock@xxxxxxxxxxxxxxx 
> Sent: Friday, July 29, 2005 10:02 AM
> Subject: Re: [EquisMetaStock Group] Re: Pivot Points
> 
> 
> Hello,
> 
> Obviously the daily pivots points are adjusted at midnight.  Is there an
> easy way to shift the daily pivots to adjust at 5 pm regardless of the
> intraday timeframe?






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/DldnlA/9M2KAA/U1CZAA/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/