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
a colour beetween Bollinger Band Up and BB Down
-
- Posts: 174
- Joined: 31 Jan 2006
- Has thanked: 74 times
- Been thanked: 5 times
a colour beetween Bollinger Band Up and BB Down
- Attachments
-
- Bollinger Bands colour.JPG
- (52.71 KiB) Downloaded 980 times
-
- Bollinger Bands & Keltner colour.PNG
- (17.15 KiB) Downloaded 985 times
- TJ
- Posts: 7745
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2224 times
try this:
in the Format Study window:
set the plot1 and plot2 TYPE to Bar High and Bar Low.
set the plot weight to thick.
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
-
- Posts: 174
- Joined: 31 Jan 2006
- Has thanked: 74 times
- Been thanked: 5 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
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: 7745
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2224 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.
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
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: 7745
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2224 times
Re: a colour beetween Bollinger Band Up and BB Down
Your problem has nothing to do with new Version 7.4Hello,
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
Right click on chart,
Select Visual Order.
-
- Posts: 742
- Joined: 09 Apr 2010
- Location: Texas
- Has thanked: 483 times
- Been thanked: 274 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..
A function that we could call like "fillspace" that would add color between 2 lines with a minimum of code..
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2958 times
Re: a colour beetween Bollinger Band Up and BB Down
Thank you for your suggestion Sptrader.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..
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/