PureBytes Links
Trading Reference Links
|
hi,
below a little code to show consecutive down days.
I need loopings to do this. I wonder if it would be possible to avoid the
loopings and just use AFL array based coding to do this. Any ideas?
rgds, Ed
tt = <FONT
color=#0000ff>IIf(<FONT
color=#000000>C < <FONT
color=#0000ff>Ref(<FONT
color=#000000>C,-<FONT
color=#ff00ff>1),<FONT
color=#ff00ff>1,<FONT
color=#ff00ff>0<FONT
color=#000000>); for<FONT
color=#000000> (i=1;
i<BarCount<FONT
face="Courier New">; i++) {
if<FONT
color=#000000> (tt[ i ] == 1<FONT
color=#000000> AND
tt[ i - 1 ] >=
1<FONT
size=2>) { tt[ i
] = tt[ i ] + tt[ i - 1<FONT
size=2> ];
} } <FONT
color=#0000ff>Plot(tt,<FONT
color=#ff00ff>"",<FONT
color=#000000>colorWhite,<FONT
color=#000000>styleHistogram | <FONT
color=#000000>styleThick);
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.
|