1st:
number of point should not be multiple of period! It's abcolutelly incorrect requirement for input seria!
You can find definition of Standard Deviation in Wiki: http://en.wikipedia.org/wiki/Standard_d ... the_sample
Each point of function should be calculate, based on N points of base seria. It is similar with , e.g., MA calculation.
2nd:
here is the code with func.PeriodStyle = Steema.TeeChart.Functions.PeriodStyles.Range;
Code: Select all
Steema.TeeChart.Styles.Candle candle = new Steema.TeeChart.Styles.Candle(tChart1.Chart);
Steema.TeeChart.Functions.High func = new Steema.TeeChart.Functions.High();
func.Period = 7;
func.PeriodAlign = Steema.TeeChart.Functions.PeriodAligns.Last;
func.PeriodStyle = Steema.TeeChart.Functions.PeriodStyles.Range;
candle.FillSampleValues((int)(28));
Steema.TeeChart.Styles.FastLine line = new Steema.TeeChart.Styles.FastLine(tChart1.Chart);
line.DataSource = candle;
line.Function = func;