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

[amibroker] Re: %b



PureBytes Links

Trading Reference Links

cool thx.... i'll try and figure it out... with that info...
really new to this stuff.  only had it for about 2 weeks.

thx


--- In amibroker@xxxxxxxxxxxxxxx, "Gordon Sutherland" <gosuth@xxx> 
wrote:
>
> I gave you the AFL code together with the Plot statements as a 
bonus!
> The %b is the line starting with Pct_b... Thus your condition line 
would
> be:
> 
> Pct_b_Above_85 = Pct_b > 85;
> 
> Read the AB Help files on "Parameters" to change the look back 
period
> and standard deviation value. You can either hard-code amend the 
second
> argument for each parameter line, as I provided, or soft-code by 
using
> the parameters box in the AA Window (for Exploration or Back Test
> reports).
> 
> Good luck,
> 
> Regards,
>  
> Gordon  Sutherland
>  
> 
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] 
On
> Behalf Of thecoolestdude1369
> Sent: Sunday, 5 November 2006 9:26 a.m.
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: %b
> 
> 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 amibroker@xxxxxxxxxxxxxxx, "Gordon Sutherland" <gosuth@> 
> 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",10,10,100,1);
> > StdDev = Param("# of Std Devs",1.5,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: amibroker@xxxxxxxxxxxxxxx 
[mailto:amibroker@xxxxxxxxxxxxxxx] 
> On
> > Behalf Of thecoolestdude1369
> > Sent: Sunday, 5 November 2006 8:20 a.m.
> > To: amibroker@xxxxxxxxxxxxxxx
> > 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
>




Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.11/542 - Release Date: 11/20/2006