怎样修改通代达信CCI指标
- 提问者网友:伴风望海
- 2021-05-09 04:50
- 五星知识达人网友:野慌
- 2021-05-09 05:08
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),COLORMAGENTA;
压力:HHV(MA(CCI,3),14),COLORRED;
支撑:LLV(MA(CCI,3),14),COLORYELLOW;
选股:=CCI>100 AND C>REF(C,1) AND CCI<REF(CCI,1) AND C>O ;
DRAWICON(选股,CCI,9);
{价量结合CCI公式}
N:=20;
P:=1.618;
TYP:=(HIGH+LOW+CLOSE+OPEN)/4;
CCI:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
MV:=FORCAST(OBV,3);
CCIV:=(MV-MA(MV,N))/(0.015*AVEDEV(MV,N));
{布林线信号}
CC: FORCAST((CCI+CCIV)/2,3),LINETHICK2;
中轨: MA(CC,N);
上轨: 中轨+P*STD(CC,N);
下轨: 中轨-P*STD(CC,N);
{DRAWICON(CROSS(CC,下轨),下轨*1.2,1);{买信号B}
{DRAWICON(CROSS(上轨,CC),上轨*1.2,2);{卖信号S}
100,POINTDOT;
-100,POINTDOT 原文链接: http://www.55188.com/viewthread.php?tid=3754489
知道CCI公式是:
TYP := (IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/3;
CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
nH:=HHV(NEW,15);
nl:=LLV(NEW,15);
fsTYP := (NH +NL+NEW)/3;
fsCCI:(fsTYP-MA(fsTYP,14))/(0.015*AVEDEV(fsTYP,14));
a:100;
b:-100;