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} D:=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
----- Original Message -----
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?
----- Original Message
----- From: "daytraderteam" <daytraderteam@xxxxxxxx> To:
<equismetastock@xxxxxxxxxxxxxxx> Sent:
Thursday, July 28, 2005 3:30 PM Subject: [EquisMetaStock Group] Re: Pivot
Points
And here the most simple and fast version
:
-------------------------------------- dia:=DayOfWeek()<>Ref(DayOfWeek(),-1); 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,dia,r2); ValueWhen(1,dia,r1); ValueWhen(1,dia,pp); ValueWhen(1,dia,s1); ValueWhen(1,dia,s2);
---------------------------------------
greetings
>--->
--- In equismetastock@xxxxxxxxxxxxxxx, "John
Roberts" <jcr@xxxx> wrote: > > Hi > > Does any
one have a Pivot Point indicator that can place the daily support > and
resistance lines any intraday chart > > I have MetaStock Pro
v9 > > The intermediate support and resistance lines are ok too.
- even preferred > eg R 1.5 > > Formulas used:Pivot
point (High + Low + Close) /3 > First resistance level R1 = (2 * pp) -
L > First support level S1 = (2 * pp) - H > Second resistance level
R2 = pp + (R1 - S1) > Second support level S2 = pp - (R1 - S1) >
Third resistance level R3=High+(Pivot-Low) > Third support level S3=Low -
2*(High-Low) > > Where H, L, C are the previous day's high, low and
close, respectively > > Thanks in advance > > John
Roberts.
Yahoo! Groups
Links
YAHOO! GROUPS LINKS
|