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

Re: [Metastockusers] Daily Pivot Points On Five Minute Chart



PureBytes Links

Trading Reference Links


Hello Dusant,

This looks very much like Henry's code. Unfortunately (for my particular
requirement), it only plots the current period.

I've solved it now.

Thanks a lot for your help.

Regards,
Kevin

At 08:43 19/03/2004 +0530, you wrote:
See if you can use
this.
 
This is not mine, but something I picked
up.
 
TF:=Input("1=hour 2=day 3=week 4=month
5=year ",1,5,2);
NW:=If(TF=1,ROC(Minute(),1,$)<0,If(TF=2,ROC(Hour(),1,$)<0,
If(TF=3,ROC(DayOfWeek(),1,$)<0,If(TF=4,ROC(DayOfMonth(),1,$)<0,ROC(Month(),1,$)<0))));
A1:=Cum(1);
A2:=LastValue(A1-BarsSince(NW>0));
WH:=ValueWhen(1,Nw,Ref(HighestSince(1,Nw,H),-1));
WL:=ValueWhen(1,Nw,Ref(LowestSince(1,Nw,L),-1));
WCL:=ValueWhen(1,Nw,Ref(C,-1));
BP:=LastValue((WH+WL+WCL)/3);
R#2:= If(A1<A2,BarsSince(A1>=A2),LastValue(((WH+WL+WCL)/3) -
(2*
((WH+WL+WCL)/3)-WH) +(2*((WH+WL+WCL)/3)-WL)));
R#1:=
If(A1<A2,BarsSince(A1>=A2),LastValue(2*((WH+WL+WCL)/3)-WL));
R#3:= If(A1<A2,BarsSince(A1>=A2),LastValue(R#2+(WH-Wl)));
PP:=If(A1<A2,BarsSince(A1>=A2),LastValue((WH+WL+WCL)/3));
S#1:=
If(A1<A2,BarsSince(A1>=A2),LastValue(2*((WH+WL+WCL)/3)-WH));
S#2:=
If(A1<A2,BarsSince(A1>=A2),LastValue(((WH+WL+WCL)/3)-(((2*
((WH+WL+WCL)/3) - WL)-(2*((WH+WL+WCL)/3)-WH)))));
S#3:=If(A1<A2,BarsSince(A1>=A2),LastValue(S#2-(WH-WL)));
R#3;
R#2;
R#1;
PP;
S#1;
S#2;
S#3;
Dusant
Chief Architect
http://www.candlestrength.com/
----- Original Message ----- 
From: "Kevin"
<kevin_barry@xxxxxxxxxxxxxx>
To:
<metastockusers@xxxxxxxxxxxxxxx>
Sent: Friday, March 19, 2004 01:30 AM
Subject: [Metastockusers] Daily Pivot Points On Five Minute Chart

> Hello,
> 
> I want to incorporate a condition in a system test on a five-minute
chart. 
> I do not want to buy if the price is within a certain percentage of
one of 
> the daily pivot points. Does anybody know how to plot daily pivots
on 
> intraday charts for testing purposes? Unfortunately, Henry's
excellent 
> pivot points indicator only plots the value for the current
period.
> 
> Thanks in advance,
> Kevin
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> <*> To visit your group on the web, go to:
>     
http://groups.yahoo.com/group/Metastockusers/
> 
> <*> To unsubscribe from this group, send an email to:
>     
Metastockusers-unsubscribe@xxxxxxxxxxxxxxx
> 
> <*> Your use of Yahoo! Groups is subject to:
>     
http://docs.yahoo.com/info/terms/
>  
> 
> 

Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/Metastockusers/
  
To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxxxxxx
  
Your use of Yahoo! Groups is subject to the
Yahoo! Terms of Service. 









Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/Metastockusers/ 
To unsubscribe from this group, send an email to:Metastockusers-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.