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

[Metastockusers] Henry's Pivot Points



PureBytes Links

Trading Reference Links

Hello Henry,

Sometime ago, you published this very nice formula to plot pivots points on 
an intraday chart. What would be the most efficient way of modifying it to 
plot all of the previous pivot points as well the current set?

Many thanks,
Kevin


At 01:29 25/01/2003 +0000, you wrote:
>
>This is the formula for Pivot points that only plots the last value
>
>
>TF:=Input("1=hour 2=day 3=week 4=month 5=year ",1,5,4);
>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));
>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)))));
>R#2;
>R#1;
>PP;
>S#1;
>S#2;




------------------------ 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/zMEolB/TM
---------------------------------------------------------------------~->

 
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/