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 );