Fill area between Bollinger bands
Posted: Thu Oct 16, 2008 2:03 pm
Hi,
How can I fill the area between Bollinger bands with some color or gradient? Something like Area chart style, but between two curves.
This is my code for drawing bollinger:
Steema.TeeChart.Styles.Line line = new Steema.TeeChart.Styles.Line(tChart1);
Steema.TeeChart.Functions.Bollinger function = new Steema.TeeChart.Functions.Bollinger(tChart1);
string[] parameters = indicator.Parameters.Split(';');
function.Period = double.Parse(parameters[0]);
function.Deviation = double.Parse(parameters[1]);
line.Function = function;
line.DataSource = candleSeries1;
line.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Right;
line.Brush.Color = indicator.IndicatorColor;
line.CheckDataSource();
Thanks,
Goran
How can I fill the area between Bollinger bands with some color or gradient? Something like Area chart style, but between two curves.
This is my code for drawing bollinger:
Steema.TeeChart.Styles.Line line = new Steema.TeeChart.Styles.Line(tChart1);
Steema.TeeChart.Functions.Bollinger function = new Steema.TeeChart.Functions.Bollinger(tChart1);
string[] parameters = indicator.Parameters.Split(';');
function.Period = double.Parse(parameters[0]);
function.Deviation = double.Parse(parameters[1]);
line.Function = function;
line.DataSource = candleSeries1;
line.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Right;
line.Brush.Color = indicator.IndicatorColor;
line.CheckDataSource();
Thanks,
Goran