Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/7/2005(UTC) Posts: 1,346
|
hey david ..... found it.... it's referencing to the viewable chart .... so if you apply it to a 5 year chart and then zoom in , it will adjust to that range.... it was from ozgur, jose changed it up some.... can't find ozgur's orignal......h
moliva fibonnaci
{from ozgur1976yildirim and jose}
{C:\\Documents and Settings\\hayseed\\Desktop\\jose}
a:=Input("ZigZag minimum percentage",.01,100,5);
b:=Input("Fib levels based on: [1]Troughs, [2]Peaks",1,2,1);
d:=Input("HHV/LLV periods",1,500,50);
formulal:=Trough(1,C,a);
formulSat:=Peak(1,C,a);
al:=LLV(formulal,d);
sat:=HHV(formulsat,d);
feb:=sat-al;
feb0:=LastValue(al) ;
feb1:=LastValue(al+feb*.236);
feb2:=LastValue(al+feb*.382);
feb3:=LastValue(al+feb*.500);
feb4:=LastValue(al+feb*.618);
feb5:=LastValue(sat) ;
feb6:=LastValue(sat-feb*.236);
feb7:=LastValue(sat-feb*.382);
feb8:=LastValue(sat-feb*.618);
{ Plot on price chart }
If(b=1,feb0,feb8);
If(b=1,feb3,feb3);
If(b=1,feb1,feb7);
If(b=1,feb2,feb6);
If(b=1,feb4,feb0);
feb5;
---------------------------------------------------------------
|