# a colour beetween Bollinger Band Up and BB Down

Questions about MultiCharts and user contributed studies.
nuno-online
Posts: 174
Joined: 31 Jan 2006
Has thanked: 74 times
Been thanked: 5 times

### a colour beetween Bollinger Band Up and BB Down

Hi

is this possible to do this in MC

- Put a colour beetween Bollinger Band Up and BB Down

- Put a colour beetween Bollinger Bands and for example Keltner Bands

Please see screenshots
Attachments
Bollinger Bands colour.JPG
(52.71 KiB) Downloaded 980 times
Bollinger Bands & Keltner colour.PNG
(17.15 KiB) Downloaded 985 times

TJ
Posts: 7238
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 991 times
Been thanked: 2058 times
try this:

Code: Select all

``` {in the Format Study window: set the plot1 and plot2 TYPE to Bar High and Bar Low. set the plot weight to thick. } inputs: BollingerPrice( Close ), TestPriceUBand( Close ), TestPriceLBand( Close ), Length( 20 ), NumDevsUp( 2 ), NumDevsDn( -2 ), Displace( 0 ) ; variables: var0( 0 ), var1( 0 ), var2( 0 ), var3( 0 ) ; var0 = AverageFC( BollingerPrice, Length ) ; var1 = StandardDev( BollingerPrice, Length, 1 ) ; var3 = var0 + NumDevsUp * var1 ; var2 = var0 + NumDevsDn * var1 ; condition1 = Displace >= 0 or CurrentBar > AbsValue( Displace ) ; if condition1 then begin Plot1[Displace]( var3, "bar high" ) ; Plot2[Displace]( var2, "bar low" ) ; Plot4[Displace]( var3, "UpperBand" ) ; Plot5[Displace]( var2, "LowerBand" ) ; Plot6[Displace]( var0, "MidLine" ) ; if Displace <= 0 then begin condition1 = TestPriceLBand crosses over var2 ; if condition1 then Alert( "Price crossing over lower price band" ) else begin condition1 = TestPriceUBand crosses under var3 ; if condition1 then Alert( "Price crossing under upper price band" ) ; end; end ; end ;```

in the Format Study window:
set the plot1 and plot2 TYPE to Bar High and Bar Low.
set the plot weight to thick.

Attachments
BB_PB_Format.gif
format
(20.29 KiB) Downloaded 1129 times
BB_PaintBar.gif
bb
(39.87 KiB) Downloaded 1126 times

nuno-online
Posts: 174
Joined: 31 Jan 2006
Has thanked: 74 times
Been thanked: 5 times
Many thanks for the reply TJ

2haerim
Posts: 502
Joined: 01 Sep 2006
Been thanked: 2 times

### One different question

After doing what TJ said, I also needed to set the Visual Order as Send Back to see the bars. Anyway it is ok.

However, once after this indicator is on the chart, I happen to recompile it (just hit spacebar and delete it). Then all the formattings revert back to the default ones.

How can I sustain the settings(plot type, colour, weight and so on)?

HR

TJ
Posts: 7238
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 991 times
Been thanked: 2058 times

### Re: One different question

After doing what TJ said, I also needed to set the Visual Order as Send Back to see the bars. Anyway it is ok.

However, once after this indicator is on the chart, I happen to recompile it (just hit spacebar and delete it). Then all the formattings revert back to the default ones.

How can I sustain the settings(plot type, colour, weight and so on)?

HR

Check the "Use as Default" box,
then save the chart.

Kinko Hyo
Posts: 45
Joined: 10 Jan 2012
Has thanked: 1 time
Been thanked: 1 time

### Re: a colour beetween Bollinger Band Up and BB Down

Hello,

in the new Version 7.4 the Candles are not to see, because the Bollinger Bands cover the candles.

Have anyone an idea to show the candles within the colour Bands?

Best regards

TJ
Posts: 7238
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 991 times
Been thanked: 2058 times

### Re: a colour beetween Bollinger Band Up and BB Down

Hello,

in the new Version 7.4 the Candles are not to see, because the Bollinger Bands cover the candles.

Have anyone an idea to show the candles within the colour Bands?

Best regards
Your problem has nothing to do with new Version 7.4

Right click on chart,

Select Visual Order.

Kinko Hyo
Posts: 45
Joined: 10 Jan 2012
Has thanked: 1 time
Been thanked: 1 time

### Re: a colour beetween Bollinger Band Up and BB Down

@TJ,

many thanks.

sptrader
Posts: 710
Joined: 09 Apr 2010
Location: Colorado
Has thanked: 470 times
Been thanked: 261 times
Contact:

### Re: a colour beetween Bollinger Band Up and BB Down

This seems like a good feature for MC to add, the ability to easily "fill in" the space between two averages (or two trendlines for that matter), like they do in NT..
A function that we could call like "fillspace" that would add color between 2 lines with a minimum of code..

Henry MultiСharts
Posts: 9149
Joined: 25 Aug 2011
Has thanked: 1260 times
Been thanked: 2932 times

### Re: a colour beetween Bollinger Band Up and BB Down

This seems like a good feature for MC to add, the ability to easily "fill in" the space between two averages (or two trendlines for that matter), like they do in NT..
A function that we could call like "fillspace" that would add color between 2 lines with a minimum of code..
Thank you for your suggestion Sptrader.
We have been considering such feature and would like to know the users feedback about it.
Please submit a feature request to the Project Management of our web site so other users can vote for it: https://www.multicharts.com/pm/

Return to “MultiCharts”