N:=40;N1:=6;N2:=13;N3:=33;{股票公式-股票指标www.gs6699.com}
三红共震选股:=((SMA(ABS((LOW - REF(LOW,1))),3,1) / SMA(MAX((LOW - REF(LOW,1)),0),3,1)) * 100);
指标公式:=EMA(IF((CLOSE * 1.3),(三红共震选股 * 10),(三红共震选股 / 10)),3);
cccss2:=LLV(LOW,30);
cccss3:=HHV(指标公式,30);
cccss4:=((EMA(IF((LOW <= cccss2),((指标公式 + (cccss3 * 2)) / 2),0),3) / 6180) * 2.5);
cccss5:=IF((cccss4 > 15),15,cccss4);
cccss7:STICKLINE((cccss5 > 0),0,cccss5,4,1),COLORWHITE;
cccss8:STICKLINE((cccss5 < 5),0,cccss5,4,1),COLORYELLOW;
cccss9:=(((MA(CLOSE,N) - CLOSE) / MA(CLOSE,N)) * 10);
cccssA:STICKLINE(CROSS(1.7,cccss9),7.5,0,6,0),COLORYELLOW;
cccssC:DRAWICON(CROSS(1.7,cccss9),8,7);
cccssD:=DRAWTEXT(CROSS(1.7,cccss9),10,'');
ccca1:MA((MA(CLOSE,N3)-CLOSE)/MA(CLOSE,N3)*50,5),LINETHICK2,COLORLIRED;
ccca2:MA((MA(CLOSE,N2)-CLOSE)/MA(CLOSE,N2)*50,5),LINETHICK2,COLORMAGENTA;
ccca3:MA((MA(CLOSE,N1)-CLOSE)/MA(CLOSE,N1)*50,5),LINETHICK2,COLORRED;
ccca5:0,COLORWHITE,LINETHICK2;
STICKLINE((ccca1>0),0,ccca1,0,-1),COLORLIRED;
STICKLINE((ccca1<0),0,ccca1,0,-1),COLORCYAN;
STICKLINE((ccca2>0),0,ccca2,0,-1),COLORMAGENTA;
STICKLINE((ccca2<0),0,ccca2,0,-1),COLORLIGREEN;
STICKLINE((ccca3>0),0,ccca3,0,-1),COLORRED;
STICKLINE((ccca3<0),0,ccca3,0,-1),COLORGREEN;