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

Re: [amibroker] Help with Boll B Commentary



PureBytes Links

Trading Reference Links

Carolyn,

Since the code uses 100 bar moving average of BBand width,
you need to have 100+short time MA bars to display
the value.

In other words the code will give you the value if
you have more than half a year of data available.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "Carolyn Barnes" <cbarnes@xxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, October 21, 2003 9:24 PM
Subject: [amibroker] Help with Boll B Commentary


> 
> The commentary on the Bollinger Bands says this:
> 
> 
> btop = BBandTop( C, Prefs( 4 ), Prefs(8)/100 );
> bbot = BBandBot( C, Prefs(4), Prefs(8)/100 );
> width = btop - bbot;
> 
> mawidth = MA( width, 100 );
> relwidth = 100*(width - mawidth)/mawidth;
> 
> "Bollinger Bands are " )+   
> WriteVal( abs( relwidth ), 1.1 ) + "% " +
> WriteIf( relwidth > 0, "wider" , "narrower" ) +
> " than normal.";
> 
> This is printed in the commentary:
> 
> Bollinger Bands are{EMPTY}% narrower than normal.
> 
> I can't figure out where the problem is...
> 
> Thanks
> Carolyn
> 
> 
> 
> 
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> 
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
> 
> 
> 

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/Tq9otC/XP.FAA/3jkFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

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