i was just looking for the formula to scan for stocks not to plot the 
%b.  what would it be to find stocks trading at a %b greater than 85% 
with a moving average of 10 and standard deviation of 1.5?

thx again 


--- In [email protected], "Gordon Sutherland" <[EMAIL PROTECTED]> 
wrote:
>
> This is my code to produce %b:
> 
> _SECTION_BEGIN("BB %b");
>  /*   Code for Bollinger Bands %b 
>       Algorithm for %b = (Close - lower band) / (upper band - lower
> band) Tells you where the Close is in relation to the Bollinger 
Bands
> in %  terms i.e. below BBandBot show up as below zero */
> 
> /* Define Parameters */
> BBPer = Param("BB's SMA Periods",20,10,100,1);
> StdDev = Param("# of Std Devs",2.0,0.5,5,0.1);
> ColPct_b = ParamColor("BB %b",colorGreen);
> ColUpperBB = ParamColor("Upper BB",colorRed);
> ColLowerBB = ParamColor("Lower BB",colorBlue);
> GraphXSpace = Param("GraphXspace",7,0,10,1);
> 
> /* Coding for Bollinger Bands %b */
> BTop = BBandTop(Close, BBPer, StdDev);
> BBot = BBandBot(Close, BBPer, StdDev);
> Pct_b   = ((C - BBot) / (BTop - BBot)) * 100;
> 
> Plot(Pct_b,"Pct_b",ColPct_b,1);
> Plot(100,"Upper BB Level",ColUpperBB,1+4);
> Plot(0,"Lower BB Level",ColLowerBB,1+4);
> _SECTION_END();
> 
> Regards,
>  
> Gordon  Sutherland
>  
> 
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] 
On
> Behalf Of thecoolestdude1369
> Sent: Sunday, 5 November 2006 8:20 a.m.
> To: [email protected]
> Subject: [amibroker] %b
> 
> does anyone know..what is the formula to figure out the %b of a 
stock
> 
> 
> 
> 
> 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
>





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:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

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

Reply via email to