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

RE: [amibroker] %b



PureBytes Links

Trading Reference Links

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: 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







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