Print Page | Close Window

FILL Bollinger Bands

Printed From: BullCharts Forum
Category: BullCharts
Forum Name: BullScript
Forum Discription: Technical discussion related specifically to the BullScript programming language.
URL: http://www.bullcharts.com.au/forum/forum_posts.asp?TID=549
Printed Date: 12 Apr 2025 at 11:00pm
Software Version: Web Wiz Forums 9.69 - http://www.webwizforums.com


Topic: FILL Bollinger Bands
Posted By: jalna
Subject: FILL Bollinger Bands
Date Posted: 08 Mar 2009 at 8:45am
Hi , I'm trying to fill Bollinger Bands with a pale solid colour but not had any success yet.
Checked out the code for MACD but it doesn't do anything for the BBands. Tried cutting out some of the code signal line etc but its obviously more complicated than that and how do you make FILL show in the BBands properties box
Any ideas




Replies:
Posted By: maximo
Date Posted: 10 Mar 2009 at 12:22am
G'day Jalna
I had a look at the Hull Activest indicator which has a band fill.  The last 2 lines here do the job.   Giving the item a name allows access to it in properties.
 
 

n := input("Time periods",14,1);

sd := input("Standard Deviations",2,1);

[target=price]

[name=Top]

bt:=bbandtop(C,n,S,sd);

bt;

[name=Bottom]

bb:=bbandbot(C,n,S,sd);

bb;

[name=Average; linestyle=dash]

ma(C,n,S);

[name=Band Fill; linestyle=fill; color=blue]

bt; bb;

 



Print Page | Close Window

Bulletin Board Software by Web Wiz Forums® version 9.69 - http://www.webwizforums.com
Copyright ©2001-2010 Web Wiz - http://www.webwiz.co.uk