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

Re: [amibroker] AFL - screen for outliers



PureBytes Links

Trading Reference Links

Thanks to all who responded.

Thomas, you are right, I had parametrs set differently.

Ara

----- Original Message ----- 
From: "Thomas Z." <tzg@xxxxxxxxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, March 12, 2007 11:41 PM
Subject: RE: [amibroker] AFL - screen for outliers


Hello Ara,

i have checked your code and it works.
Maybe you have different parameter values in AA and Chart, because they are
not connected.
So If you change your NumDevs parameter in AA, it will not be changed on the
chart and if you change it
in the chart, it will not be changed in AA.

Thomas
www.patternexplorer.com


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of Ara Kaloustian
Sent: Tuesday, March 13, 2007 5:45 AM
To: AB-Main
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;





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

Yahoo! Groups Links





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Transfer from your equities account.  
Receive up to $1,000 from GFT. Click here to learn more.
http://us.click.yahoo.com/aZttyC/X_xQAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/