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

MARKING INTERESTING POINTS



PureBytes Links

Trading Reference Links

I suppose that you keep the default number of 159 quotations in a chart andyou plot 2 or more charts
per sheet.
The same technique may be applied for other interesting points of a certaingraph. Insted of Peak condition
you may have a cross, buy, sell, highest, lowest or any other condition. 
The marking circles are permanent and independent of selected stock.
They are also independent of prices [the same apparent size for a scale 1 to 3 as for a 2500 to 5000].
Dimitris Tsokakis

------=_NextPart_001_002D_01C1E7C4.B4033580
Content-Type: text/html;
charset="iso-8859-7"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-7" http-equiv=Content-Type>
<META content="MSHTML 5.00.3013.2600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Let us mark with a small circle the last 3 recent peaksand 
troughs.</FONT></DIV>
<DIV><FONT size=2>/*Marking recent peaks and troughs*/</FONT></DIV>
<DIV><FONT size=2>R=1;//Marking circle 
radius<BR>m=0.015*(HHV(H,159)-LLV(L,159));//scaling factor<BR>x=Cum(1);<BR>per = 
5;//Sensitivity Calibration<BR>pR = PeakBars( H, per, 1 ) == 0;//Peak 
condition<BR>x01= LastValue(ValueWhen( pR, x, 1 ));<BR>x02=LastValue(ValueWhen( 
pR, x, 2 ));<BR>x03=LastValue(ValueWhen( pR, x, 3 ));<BR>y01 = 
LastValue(ValueWhen( pR, H, 1 ) );<BR>y02=LastValue(ValueWhen( pR, H, 2 ) 
);<BR>y03 = LastValue( ValueWhen( pR, H, 3&nbsp; 
));<BR>Plot(C,"",1,64);<BR>y0=y01;x0=x01;<BR>y=y0+m*sqrt(R^2-(x-x0)^2);<BR>y1=y0-m*sqrt(R^2-(x-x0)^2);<BR>Plot(y,"",4,1);Plot(y1,"",4,1);<BR>y0=y02;x0=x02;<BR>y=y0+m*sqrt(R^2-(x-x0)^2);<BR>y1=y0-m*sqrt(R^2-(x-x0)^2);<BR>Plot(y,"",4,1);Plot(y1,"",4,1);<BR>y0=y03;x0=x03;<BR>y=y0+m*sqrt(R^2-(x-x0)^2);<BR>y1=y0-m*sqrt(R^2-(x-x0)^2);<BR>Plot(y,"",4,1);Plot(y1,"",4,1);<BR>TpR 
= TroughBars( L, per, 1 ) == 0;//Trough condition<BR>x01T= LastValue(ValueWhen( 
TpR, x, 1 ));<BR>x02T=LastValue(ValueWhen( TpR, x, 2 
));<BR>x03T=LastValue(ValueWhen( TpR, x, 3 ));<BR>y01T = LastValue(ValueWhen( 
TpR, L, 1 ) );<BR>y02T=LastValue(ValueWhen( TpR, L, 2 ) );<BR>y03T = LastValue( 
ValueWhen( TpR, L, 3&nbsp; 
));<BR>y0T=y01T;x0T=x01T;<BR>y=y0T+m*sqrt(R^2-(x-x0T)^2);<BR>y1=y0T-m*sqrt(R^2-(x-x0T)^2);<BR>Plot(Y,"",5,1);Plot(Y1,"",5,1);<BR>y0T=y02T;x0T=x02T;<BR>y=y0T+m*sqrt(R^2-(x-x0T)^2);<BR>y1=y0T-m*sqrt(R^2-(x-x0T)^2);<BR>Plot(y,"",5,1);Plot(y1,"",5,1);<BR>y0T=y03T;x0T=x03T;<BR>y=y0T+m*sqrt(R^2-(x-x0T)^2);<BR>y1=y0T-m*sqrt(R^2-(x-x0T)^2);<BR>Plot(y,"",5,1);Plot(y1,"",5,1);<BR>Title=Name()+", 
P1="+WriteVal(Y01,1.2)+", P2="+WriteVal(Y02,1.2)+", 
P3="+WriteVal(Y03,1.2)<BR>+", T1="+WriteVal(Y01T,1.2)+", 
T2="+WriteVal(Y02T,1.2)+", T3="+WriteVal(Y03T,1.2);</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>I suppose that you keep the default number of 159 quotations 
in a chart and you plot 2 or more charts</FONT></DIV>
<DIV><FONT size=2>per sheet.</FONT></DIV>
<DIV><FONT size=2>The same technique may be applied for&nbsp;other interesting 
points of a certain graph. Insted of&nbsp;Peak condition</FONT></DIV>
<DIV><FONT size=2>you may have a cross, buy, sell, highest, lowest or anyother 
condition.&nbsp;</FONT></DIV>
<DIV><FONT size=2>The marking circles are permanent and independent of selected 
stock.</FONT></DIV>
<DIV><FONT size=2>They are also independent of prices [the same apparent size 
for a scale 1 to 3 as for a 2500 to 5000].</FONT></DIV>
<DIV><FONT size=2>Dimitris Tsokakis</FONT></DIV></BODY></HTML>

------=_NextPart_001_002D_01C1E7C4.B4033580--

Attachment:
gif00292.gif

Attachment: Description: "Description: GIF image"