PureBytes Links
Trading Reference Links
|
<x-html><!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
MSPro users,
<p>Here is indicator that plots daily pivot point levels (pivot point base,
R1, R2, S1, S2) on today's intraday chart.
<p>This indicator has a line display option which can reassign S/R levels
to the pivot base value for the auto-scaling reason mentioned the other
day.
<p>Attached is a file for import.
<p>Regards,
<br>Ken
<br>
<p>
<b><u>Intra P Pts S/R 1, 2</u></b>
<br>{The default start time is for a 9:30 market on a 5 minute chart.}
<p>MktHour:=
<br>Input("Enter start bar hour",
<br> 1,24,9);
<p>MktMinute:=
<br>Input("Enter start bar minute",
<br> 00,59,35);
<br>
<p>A:=
<br>Input("R1= 1, R2= 2, Both= 3, None= 0",
<br>
0,3,1);
<p>B:=
<br>Input("S1= 1, S2= 2, Both= 3, None= 0",
<br>
0,3,1);
<br>
<p>MktStart:= Hour()=MktHour AND
<br>
Minute()=MktMinute;
<p>yestMktEnd:= Ref(MktStart,1);
<p>Opn:= Ref(O,1);
<br>yestClo:= C;
<br>yestHi:= HighestSince(1,MktStart,H);
<br>yestLo:= LowestSince(1,MktStart,L);
<p>PB:= (yestHi+yestLo+yestClo)/3;
<br>R1:= (2*PB)-yestLo;
<br>S1:= (2*PB)-yestHi;
<br>R2:= (PB-S1)+R1;
<br>S2:= PB-(R1-S1);
<br>
<p>X:= If(yestMktEnd=1,PB,
<br> ValueWhen(1,yestMktEnd=1,PB));
<br>
<p>J:= If(yestMktEnd=1,R1,
<br> ValueWhen(1,yestMktEnd=1,R1));
<br>
<p>Y:= If(yestMktEnd=1,R2,
<br> ValueWhen(1,yestMktEnd=1,R2));
<br>
<p>K:= If(yestMktEnd=1,S1,
<br> ValueWhen(1,yestMktEnd=1,S1));
<br>
<p>Z:= If(yestMktEnd=1,S2,
<br> ValueWhen(1,yestMktEnd=1,S2));
<br>
<p>X;
<br>
<p>If(A=1,J,
<br> If(A=2,Y,
<br> If(A=3,J,
<br> If(A=4,X,X))));
<br>If(A=3,Y,X);
<br>
<p>If(B=1,K,
<br> If(B=2,Z,
<br> If(B=3,K,
<br> If(B=4,X,X))));
<br>If(B=3,Z,X);
<br>
<br>
<br>
<br> </html>
</x-html>
Attachment Converted: "c:\eudora\attach\Ms65form4.dta"
|