BCGSuite for MFC
CBCGPChartMAFormula::CBCGPChartMAFormula ( MovingAverageType  maType = CBCGPChartAdvancedFormula::MA_SIMPLE,
int  nPeriod = 14 
)

Constructs an MA formula object.

The constructor.

maType can be one of the following enumerated values:

  • MA_SIMPLE,
  • MA_EXPONENTIAL,
  • MA_SMOOTHED,
  • MA_LINEAR_WEIGHTED
Parameters
maTypeSpecifies moving average type.
nPeriodSpecifies moving average period.