PureBytes Links
Trading Reference Links
|
DT:
What you are drawing are known as Babson lines (Babson
of Andrews (median line)-Babson fame). Many programs have this included as
a charting tool with fully adjustable reaction levels so that one can easily
specify percentage, Gann, Fibonacci, etc. I look at them from time to time
and sometimes they are useful. I would not be surprised if TJ does not
have plans to include them in the charting tools.
Bill
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Dimitris
Tsokakis
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Saturday, June 12, 2004 8:35
AM
Subject: [amibroker] Oblique Fib Lines
and the historical support
Some historical support lines may be important for the next
Fib levels.
Move your cursor to the past to see the impact of previous
support lines.
// Oblique Fib Lines and the historical
support
x = <FONT
size=2>Cum(1);per = 5<FONT face=Verdana
size=1>;s1=L;s11=H;
pS = <FONT
size=2>TroughBars( s1, per, 1 ) == 0<FONT
face=Verdana size=1>;
endt= <FONT
size=2>SelectedValue(ValueWhen( pS, x,
1
));
startt=<FONT
size=2>SelectedValue(ValueWhen( pS, x,
2
));
dtS =endt-startt;
endS = <FONT
size=2>SelectedValue(ValueWhen( pS,
s1, 1 )
);
startS = <FONT
size=2>SelectedValue( ValueWhen( pS,
s1, 2
));
aS = (endS-startS)/dtS;bS =
endS;
trendlineS = aS * ( x -endt ) + bS;
SU = <FONT
size=2>IIf(x>startt-1,trendlineS,-1e10<FONT
face=Verdana size=1><FONT face="Times New Roman"
size=2>);
Plot<FONT
size=2>(SU,"SU"<FONT face="Times New Roman"
size=2>,colorYellow,styleThick);
Plot<FONT
size=2>(C,"C",1,64);b=BarIndex<FONT
face="Times New Roman" size=2>();
X1=<FONT
size=2>ValueWhen(Cum<FONT
size=2>(IsTrue(SU))==1<FONT face=Verdana
size=1>,b);
Y1=<FONT
size=2>ValueWhen<FONT face="Times New Roman"
size=2>(b==X1,SU);
X2=<FONT
size=2>LastValue(b);Y2=LastValue<FONT face=Verdana
size=1>(SU);
SLOPE=(Y2-Y1)/(X2-X1);
YP=<FONT
size=2>LastValue(Highest<FONT face=Verdana
size=1>(SU/SU*H));
XP=<FONT
size=2>ValueWhen<FONT face="Times New Roman"
size=2>(H==YP,b);
HL0=YP+SLOPE*(b-XP);
DIST=<FONT
size=2>ValueWhen<FONT face="Times New Roman"
size=2>(H==YP,H-SU);
HL1=YP-<FONT
size=2>0.382*DIST+SLOPE*(b-XP);Plot<FONT
size=2>(HL1,"\n0.382",colorTurquoise,1<FONT
face="Times New Roman" size=2>);
HL2=YP-<FONT
size=2>0.5*DIST+SLOPE*(b-XP);Plot<FONT
size=2>(HL2,"\n0.500",colorRed,8<FONT
face="Times New Roman" size=2>);
HL3=YP-<FONT
size=2>0.618*DIST+SLOPE*(b-XP);Plot<FONT
size=2>(HL3,"\n0.618",colorIndigo,1<FONT
face="Times New Roman" size=2>);
HL4=YP-<FONT
size=2>0.786*DIST+SLOPE*(b-XP);Plot<FONT
size=2>(HL4,"\n0.786",colorGold,1<FONT
face="Times New Roman" size=2>);
Plot<FONT
size=2>((HL1/HL1)*HL0,"\nRE",colorYellow,styleThick);
GraphXSpace=2<FONT
face="Times New Roman">;
Some support 6 or 9 months ago are quite characteristic and
useful .
Dimitris Tsokakis<FONT
face=Verdana>
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Sponsor
ADVERTISEMENT
Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|