Moving Average Function does not appear to work !
Posted: Thu Dec 18, 2003 9:12 pm
m_Chart1.Series(0).SetFunction(tfMovavg);
m_Chart1.Series(0).GetFunctionType().SetPeriod(4.0);
m_Chart1.Series(0).SetDataSource(COleVariant("YValues"));
OK that compiles.
How is it used ?
Once every second this is called to update the chart, but where/when is the
moving average implemented ?
m_Chart1.Series(0).AddArray( 4096, YValues, XValues); // update
Everything I've tried to date and no moving average !
The help files(tutorial) imply it all just happens ! But it does not...
m_Chart1.Series(0).GetFunctionType().SetPeriod(4.0);
m_Chart1.Series(0).SetDataSource(COleVariant("YValues"));
OK that compiles.
How is it used ?
Once every second this is called to update the chart, but where/when is the
moving average implemented ?
m_Chart1.Series(0).AddArray( 4096, YValues, XValues); // update
Everything I've tried to date and no moving average !
The help files(tutorial) imply it all just happens ! But it does not...