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

[amibroker] Year cycle



PureBytes Links

Trading Reference Links

j=Param("year to begin line study",1999,1800,3000,1);
k=Param("month to begin line study",1,1,12,1);
m=Param("day of month to begin line study",4,1,31,1);
ext=Param("Extension: 2=upward; 1=downward; 0=none",0,0,2,1);
hi=Param("high",0,20000,100);
lo=Param("low",0,20000,50);
BeginPlot=Year()=j AND Month()=k AND DayOfMonth()=m;
n=ValueWhen(1,BeginPlot,(hi-(hi-lo)*2.618));
q=ValueWhen(1,BeginPlot,(hi-(hi-lo)*1.618));
u=ValueWhen(1,BeginPlot,(hi-(hi-lo)*1.382));
x=ValueWhen(1,BeginPlot,((hi-lo)*1.382)+lo);
y=ValueWhen(1,BeginPlot,((hi-lo)*1.618)+lo);
z=ValueWhen(1,BeginPlot,((hi-lo)*2.618)+lo);
IIf(ext=1,n,lo);
IIf(ext=1,q,lo);
IIf(ext=1,u,lo);
ValueWhen(1,BeginPlot,lo);
ValueWhen(1,BeginPlot,((hi-lo)*.236)+lo);
ValueWhen(1,BeginPlot,((hi-lo)*.382)+lo);
ValueWhen(1,BeginPlot,((hi-lo)*.5)+lo);
ValueWhen(1,BeginPlot,((hi-lo)*.618)+lo);
ValueWhen(1,BeginPlot,((hi-lo)*.764)+lo);
ValueWhen(1,BeginPlot,hi);
IIf(ext=2,x,hi);
IIf(ext=2,y,hi);
IIf(ext=2,z,hi);
 
That's fibonacci I'm trying to create into AB but I'm stumped. Please help or rewrite Benner Cycle, as long as it works. I'm just into Fib thing. Very interested.
 
Regards,
Alex
 


Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS




GIF image