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

[amibroker] Re: Fib solutions vs the tough market decisions



PureBytes Links

Trading Reference Links




 
// Fib Time zones
Plot(C,"C",1,64);GraphXSpace=2<FONT 
size=2>;
AB=<FONT 
size=2>Study("AB",GetChartID());
T1=<FONT 
size=2>ValueWhen(Cum(IsTrue(AB))==1,BarIndex<FONT 
size=2>());
T2=<FONT 
size=2>LastValue(ValueWhen(IsTrue(AB),BarIndex<FONT 
size=2>()));
K=0;Title=""<FONT 
size=1>;
procedure 
p(f)
{
K=K+1<FONT 
size=1>;
PlotShapes<FONT 
size=2>(shapeCircle*(BarIndex()-t2==int<FONT 
size=2>(f*(t2-t1))),colorRed);
g=-BarIndex()+t2+int<FONT 
size=1>(f*(t2-t1));
Plot<FONT 
size=2>(g==0,"",30+K,2+styleLeftAxisScale);
Title=Title+WriteIf(g>0,"\nFib["+NumToStr(f)+"] will occur 
in "+WriteVal(g,1.0)+" bars","");
}
p(0);
p(0.382);
p(0.5<FONT 
size=2>);
p(0.618<FONT 
size=2>);
p(1<FONT 
size=2>);
p(1/0.618<FONT 
size=2>);
p(1/0.5<FONT 
size=2>);
p(1/0.382<FONT 
size=1>);
 

Draw a characteristic trendline[a trough-to-peak or a 
peak-to-trough], paint it yellow and name it AB.
The title will warn you for the upcoming "Fib" 
bars.
The time segments are Fib multiples of the AB 
period.
Comments:
1. If you still wonder why Fib theories are attractive for the 
last 800 years, see the "exact" points 
X1[0.382] and X2[1.618] of the last Nikkei 
chart...
2. If you have any idea, why yes [for 1.618] and why not [for 
2.000], I am 89% cash now, so please let me know...
Dimitris 
Tsokakis


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.







Attachment:
1FIBT.gif

Attachment: Description: "Description: GIF image"