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

[Metastockusers] Daily Pivot on lower time frame. Code included.



PureBytes Links

Trading Reference Links









<span
>Hi all.  Someone on here had posted the following code
a while back.  My Daily Pivot code is shown as well.

<span
>First, is the &#8220;Daily on 3 minute&#8221; calculating
the same as mine?

<span
>If so, Second, how can I adapt it to plot on a 60 Minute
chart?

<span
>If not, what is the best way to adapt my code to plot on a
60 minute chart?

<span
> 

<span
>Thanks in advance.

<span
> 

<span
>Daily
on 3 minute chart:

 

Dm:=If(Hour()<=Ref(Hour(),-1),1,0);

PP3:=If(Dm=1,(Ref(HighestSince(1,Dm=1,H),-1)+

Ref(LowestSince(1,Dm=1,L),-1) +

Ref(C,-1))/3,0);

Mh1:=If(Dm=1,Ref(HighestSince(1,Dm=1,H),-1),0);

Ml1:=If(Dm=1,Ref(LowestSince(1,Dm=1,L),-1),0);

Mh:=ValueWhen(1,Mh1>0,Mh1);

Ml:=ValueWhen(1,Ml1>0,Ml1);

PPM:=ValueWhen(1,PP3>0,PP3);

R1:=(2*PPM)-Ml;

S1:=(2*PPM)-Mh;

S3:=ppm-(Mh-Ml);

S2:=S1-(R1-S1);

R2:=R1+(R1-S1);

R3:=ppm+(Mh-Ml);

evm:=(mh-PPm)+ml;

r2;r3;r1;ppm;s1;s3;s2;

 

<span
>My
Daily Pivot:

 

Pivot:=(Mov(H,32.5,S)+Mov(L,32.5,S)+Mov(C,32.5,S))/3;

r2:=pivot+(Mov(H,32.5,S)-Mov(L,32.5,S));

r1:=(pivot*2)-(Mov(L,32.5,S));

s1:=(pivot*2)-(Mov(H,32.5,S));

s2:=pivot-(r1-s1);

pivot;

r2;

r1;

s1;

s2;








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.