一、通达信喜欢吗指标公式
B1:(CLOSE-REF(CLOSE,10))/REF(CLOSE,8)*100;
B2:(CLOSE-REF(CLOSE,15))/REF(CLOSE,13)*100;
B3:=INTPART(B1)=INTPART(B2);
B4:=REF(B3,1) AND REF(B1,1)=LLV(B1,5) AND REF(B2,1)=LLV(B2,5) AND REF(B1,1)<-10;
B5:=MAX(B1,B2);
DRAWICON(SUM(B5>25,2)=2 AND REF(B5,1)=HHV(B5,20),B5,8);
B6:=CROSS(B2,-15);
DRAWICON(B6,B2,1);
DRAWICON(B4,B2,9);
B7:=B2>25 AND REF(B2,1)<25 AND B1>REF(B1,1) AND B2>REF(B2,1);
DRAWICON(B7,B2,2);
N1:=BARSLAST(B7);
STICKLINE(B7,B2,B2,5,0),COLORGREEN;
B8:=SUM(B2>25,2)=2;
STICKLINE(B8,REF(B2,N1),REF(B2,N1),5,0),COLORGREEN;
二、通达信CCI修改版指标公式
N:=180;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
底:IF(CCI<-200,CCI,DRAWNULL),COLORRED,LINETHICK2;
{DRAWTEXT(CCI<-200,-180,'底'),COLORRED;}
STICKLINE(CCI<-150,-150,CCI,5,0),COLOR33CCFF;
STICKLINE(CCI<-200,-200,CCI,5,0),COLORRED;