I have programmatically added 2 database series, rDollarSeries and rUnitSeries (which display OK), and then added a new series called bSeries. This code should define bSeries as a calculation of the average price, ie Dollars/Units:
theDiv := TDivideTeeFunction.Create(ChartForm);
bSeries.SetFunction(theDiv);
bSeries.DataSources.Add(rDollarSeries);
bSeries.DataSources.Add(rUnitSeries);
bSeries.FunctionType.Period := 1;
But it no longer works

Is there a new technique for doing this ?