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

Re: [amibroker] AFL - screen for outliers



PureBytes Links

Trading Reference Links

You will need a very volatile market to see excursions outside of 3 sigma.  At that level, price will be outside only 0.27% of the time or less than one hit/year.  Take a look at a real jumpy chart such as ^VIX.  Even then only 8 excursions in 6 years. 
 
Bill
 
----- Original Message -----
To: AB-Main
Sent: Tuesday, March 13, 2007 12:44 AM
Subject: [amibroker] AFL - screen for outliers

I am trying to do a simple screen to find issues that are outside 3 standard deviations of Bollinger band.
 
The code below seems to work .. of sorts, but when I plot the chart, the results are not outside the bands.
 
Appreciate another pair of eyes looking at this.
 
Ara
 
===============================================================
 
 
NumDevs  = Param("NumDevs",3,1,4,1);
 
Top  = BBandTop(C,20,numdevs);
Bot  = BBandBot(C,20,numdevs);
 
HiLo   = IIf (Close > Top,1,IIf(Close < Bot,-1,0));
 

PlotOHLC(Open,High,Low,Close,"",colorBlack,styleCandle);
Plot(Top,"",colorRed,styleLine);
Plot(Bot,"",colorRed,styleLine);
//
//
Filter = HiLo ==1 OR HiLo ==-1;
AddColumn(Close,"Close");
AddColumn(HiLo,"HiLo");
 

"Close  " + Close;
"Top     " + Top;
"Bot     " + Bot;


No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.9/719 - Release Date: 3/12/2007 8:41 AM
__._,_.___

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___