It seems to do so for me
Rick
--- Ara Kaloustian <[EMAIL PROTECTED]> wrote:
> 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;
Rick Osborn & Associates
885 Sorrento Ave.
Oshawa, Ontario L1J 6V6
(905) 728-8543 fax 728-0815