CCI周期源码
换手:=VOL/CAPITAL*100,NODRAW,COLORRED;
牛熊线:100,COLORGREEN,DOTLINE;
月C:("CCI解密2.月CCI"),COLORYELLOW,LINETHICK2;
周C:("CCI解密2.周CCI"),COLORRED,LINETHICK2;
日CCI:("CCI解密2.CCI"),COLORLIGRAY,LINETHICK1;
QS:=周C>=月C AND 周C>=200 AND 月C>=110;
STICKLINE(QS,-115,-105,3,0),COLORRED;
DRAWICON(CROSS(日CCI,100) AND 周C>=月C AND 周C>=200 AND 月C>=110,日CCI,1);
CCI月周日源码
换手:VOL/CAPITAL*100,NODRAW,COLORRED;
牛熊线:100,COLORGREEN,DOTLINE;
月C:("CCI.CCI#MONTH"(14)),COLORYELLOW,LINETHICK2;
周C:("CCI.CCI#WEEK"(14)),COLORRED,LINETHICK2;
日CCI:("CCI.CCI"(14)),COLORLIGRAY,LINETHICK2;
QS:=周C>=月C AND 周C>=200 AND 月C>=110;
STICKLINE(QS,-115,-105,3,0),COLORRED;
DRAWICON(CROSS(日CCI,100) AND 周C>=月C AND 周C>=200 AND 月C>=110,日CCI,1);
CCI解密2源码
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
周N:=WEEKDAY;
周HIGH:=IF(WEEKDAY=周N,HHV(H,4),0);
周LOW:=IF(WEEKDAY=周N,LLV(L,4),0);
周CLOSE:=IF(WEEKDAY=周N,CLOSE,0);
周TYP:=(周HIGH+周LOW+周CLOSE)/3;
周CCI:(周TYP-MA(周TYP,45))/(0.015*AVEDEV(周TYP,45));
www:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
月N:=DAY;
月HIGH:=IF(DAY=月N,HHV(H,30),0);
月LOW:=IF(DAY=月N,LLV(L,30),0);
月CLOSE:=IF(DAY=月N,CLOSE,0);
月TYP:=(月HIGH+月LOW+月CLOSE)/3;
月CCI:(月TYP-MA(月TYP,72))/(0.015*AVEDEV(月TYP,72));