# 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

Attachments
Bollinger Bands colour.JPG (52.71 KiB) Viewed 955 times
Bollinger Bands & Keltner colour.PNG (17.15 KiB) Viewed 960 times

TJ
Posts: 7210
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 991 times
Been thanked: 2052 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
format
BB_PB_Format.gif (20.29 KiB) Viewed 1104 times
bb
BB_PaintBar.gif (39.87 KiB) Viewed 1101 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: 7210
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 991 times
Been thanked: 2052 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: 7210
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 991 times
Been thanked: 2052 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.

Posts: 710
Joined: 09 Apr 2010
Has thanked: 468 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: 9121
Joined: 25 Aug 2011
Has thanked: 1258 times
Been thanked: 2927 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..