BCGSuite for MFC
CBCGPChartBollingerBandsFormula

Detailed Description

The CBCGPChartBollingerBandsFormula class implements the functionality of Bollinger Bands (BB) technical indicator.

To display BB indicator with deviation 2 and period 20 applied to close price use the following code:

Copy
CBCGPChartSeries* pCloseSeries = pStockSeries->GetChildSeries(CBCGPChartStockSeries::CHART_STOCK_SERIES_CLOSE_IDX);
CBCGPChartSeries* pBollingerSeries = bb.Create(pChart, _T("Bollinger Bands"), pCloseSeries);
pBollingerSeries->m_bIncludeSeriesToLegend = FALSE;
+ Inheritance diagram for CBCGPChartBollingerBandsFormula:

Public Member Functions

 CBCGPChartBollingerBandsFormulaConstructs a formula object.
 
 CalculateDataPointCalled to calculate data point values based on input series.
 
 GetDeviationReturns current deviation.
 
 SetDeviationSets new deviation.
 
- Public Member Functions inherited from CBCGPChartAdvancedBandsFormula
 CreateInitializes the formula object.
 
- Public Member Functions inherited from CBCGPChartAdvancedFormula
 GeneratePointsCalled to generate data points for an output series.
 
 GetOutputSeriesCategoryReturns output series category.
 
 GetOutputSeriesTypeReturns output series type.
 
 GetPeriodReturns formula period.
 
 SetOutputSeriesCategorySets output series category.
 
 SetOutputSeriesTypeSets output series type.
 
 SetPeriodSets formula period.
 
 UpdateLastDataPointsUpdates last data points.
 
- Public Member Functions inherited from CBCGPChartBaseFormula
 FindInputSeriesIndexFinds input series index.
 
 GetInputSeriesAtReturns an input series located at the specified position.
 
 GetInputSeriesCountReturns the number of input series.
 
 GetLParamReturns user-defined data.
 
 GetParentSeriesReturns a pointer to a parent series.
 
 IsNonDiscreteCurveTells whether the formula is displayed as a non-discrete curve.
 
 SetLParamSets user-defined data.
 
 SetParentSeriesSets a parent series that represents a formula on the diagram.
 

Additional Inherited Members

- Public Attributes inherited from CBCGPChartAdvancedFormula
 m_bUseLongDataDefines how data points are added to the output series.