BCGSuite for MFC
void CBCGPChartAdvancedFormula::SetPeriod ( int  nPeriod,
BOOL  bGeneratePoints = TRUE 
)

Sets formula period.

Call this method to change the formula period. It will also calculate and store for future use an EMA coefficient based on the specified period.

Parameters
nPeriodSpecifies the new period.
bGeneratePointsIf TRUE, data points for the output series will be calculated immediately; otherwise you'll need to call GeneratePoints manually.