Code in metastock pro software
/* CCT Coppock Curve
**
** Originally developed by Steve Karnish
** http://www.cedarcreektrading.com
**
** AFL translation by Peter Gialames
**
** Set scaling: Automatic
** Grid: Middle, Level 0
*/
graph0=(ROC(CLOSE,14 )*10 + ROC(CLOSE,11)*10 +
ROC(Ref(CLOSE,-1),14)*9 + ROC(Ref(CLOSE,-1),11)*9 +
ROC(Ref(CLOSE,-2),14)*8 + ROC(Ref(CLOSE,-2),11)*8 +
ROC(Ref(CLOSE,-3),14)*7 + ROC(Ref(CLOSE,-3),11)*7 +
ROC(Ref(CLOSE,-4),14)*6 + ROC(Ref(CLOSE,-4),11)*6 +
ROC(Ref(CLOSE,-5),14)*5 + ROC(Ref(CLOSE,-5),11)*5 +
ROC(Ref(CLOSE,-6),14)*4 + ROC(Ref(CLOSE,-6),11)*4 +
ROC(Ref(CLOSE,-7),14)*3 + ROC(Ref(CLOSE,-7),11)*3 +
ROC(Ref(CLOSE,-8),14)*2 + ROC(Ref(CLOSE,-8),11)*2 +
ROC(Ref(CLOSE,-9),14) + ROC(Ref(CLOSE,-9),11))/2;
Comment