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

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



PureBytes Links

Trading Reference Links





Hi
here are my intra-day pivots.
 
 
<FONT face=Arial 
size=2>Start:=ROC(Hour(),1,$)<0;YH:=ValueWhen(1,start,Ref(HighestSince(1,start,H),-1));YL:=ValueWhen(1,start,Ref(LowestSince(1,start,L),-1));YC:=ValueWhen(1,start,Ref(CLOSE,-1));
 
PP:=(yc + yh+ yl)/3;
r1:=(2*pp)-yL;s1:=(2*pp)-yH;
 
r2:=pp +(yh - yl);s2:=pp -(yh - yl);
 
r3:=r2+(yh-yl);s3:=s2-(yh-yl);
 
Mplus:=(pp+(r1-pp)/2);Mminus:=(pp-(pp-s1)/2);
 
Mplus;Mminus;r1;s1;r2;s2;r3;s3;
 
PP;
 
 
 
Werner
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  uhehs@xxxxxxxx 
  To: <A 
  title=Equismetastock@xxxxxxxxxxxxxxx 
  href="">Equismetastock@xxxxxxxxxxxxxxx 
  ; <A title=Metastockusers@xxxxxxxxxxxxxxx 
  href="">Metastockusers@xxxxxxxxxxxxxxx 
  ; <A title=Sunday_Traders@xxxxxxxxxxxxxxx 
  href="">Sunday_Traders@xxxxxxxxxxxxxxx 
  
  Sent: Wednesday, January 28, 2004 12:36 
  AM
  Subject: [Metastockusers] Daily Pivot on 
  lower time frame. Code included.
  
  
  <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 “Daily on 3 minute” 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:
  <SPAN 
  > 
  <SPAN 
  >Dm:=If(Hour()<=Ref(Hour(),-1),1,0);
  <SPAN 
  >PP3:=If(Dm=1,(Ref(HighestSince(1,Dm=1,H),-1)+
  <SPAN 
  >Ref(LowestSince(1,Dm=1,L),-1) 
  +
  <SPAN 
  >Ref(C,-1))/3,0);
  <SPAN 
  >Mh1:=If(Dm=1,Ref(HighestSince(1,Dm=1,H),-1),0);
  <SPAN 
  >Ml1:=If(Dm=1,Ref(LowestSince(1,Dm=1,L),-1),0);
  <SPAN 
  >Mh:=ValueWhen(1,Mh1>0,Mh1);
  <SPAN 
  >Ml:=ValueWhen(1,Ml1>0,Ml1);
  <SPAN 
  >PPM:=ValueWhen(1,PP3>0,PP3);
  <SPAN 
  >R1:=(2*PPM)-Ml;
  <SPAN 
  >S1:=(2*PPM)-Mh;
  <SPAN 
  >S3:=ppm-(Mh-Ml);
  <SPAN 
  >S2:=S1-(R1-S1);
  <SPAN 
  >R2:=R1+(R1-S1);
  <SPAN 
  >R3:=ppm+(Mh-Ml);
  <SPAN 
  >evm:=(mh-PPm)+ml;
  <SPAN 
  >r2;r3;r1;ppm;s1;s3;s2;
  <SPAN 
  > 
  <SPAN 
  >My 
  Daily Pivot:
  <SPAN 
  > 
  <SPAN 
  >Pivot:=(Mov(H,32.5,S)+Mov(L,32.5,S)+Mov(C,32.5,S))/3;
  <SPAN 
  >r2:=pivot+(Mov(H,32.5,S)-Mov(L,32.5,S));
  <SPAN 
  >r1:=(pivot*2)-(Mov(L,32.5,S));
  <SPAN 
  >s1:=(pivot*2)-(Mov(H,32.5,S));
  <SPAN 
  >s2:=pivot-(r1-s1);
  <SPAN 
  >pivot;
  <SPAN 
  >r2;
  <SPAN 
  >r1;
  <SPAN 
  >s1;
  <SPAN 
  >s2;
  
  Yahoo! Groups Links
  
    To visit your group on the web, go to:<A 
    href="">http://groups.yahoo.com/group/Metastockusers/  

    To unsubscribe from this group, send an email to:<A 
    href="">Metastockusers-unsubscribe@xxxxxxxxxxxxxxx  

    Your use of Yahoo! Groups is subject to the <A 
    href="">Yahoo! Terms of Service. 
  




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.