Difference between CCI indicator values

CCI value when displayed in exploration is different than the value shown in indicator.

  • Indicator pane value: -4.24
  • AFL value: 66.38

Why the difference?

// Indicator
periods = Param( "Periods", 5, 2, 200, 1 );
Plot( CCI( periods ), _DEFAULT_NAME(), ParamColor( "Color",  colorCycle ), ParamStyle("Style")  );
// AFL
CCIPeriods = 5; // 5 periods
CCIValue = CCI( CCIPeriods );
AddColumn( CCIValue, "CCIValue", 1.2 );

Do you have pad and align enable in Analysis settings ?

Open up amibroker manual (F1 from AmiBroker) and search for "Pad and align" - the manual describes it in quite detail. Once you do that and you need extra info, use SEARCH for "padding" on this forum and you will find answers to all questions.


This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.