R1:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
R2:=SMA(MAX(CLOSE-LC,0),10,1)/SMA(ABS(CLOSE-LC),10,1)*100;
R3:=SMA(MAX(CLOSE-LC,0),20,1)/SMA(ABS(CLOSE-LC),20,1)*100;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,42))/(0.015*AVEDEV(TYP,42));
慢线:=100*(HHV(HIGH,42)-CLOSE)/(HHV(HIGH,42)-LLV(LOW,42));
快线:=100*(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21));
提前埋伏:CROSS(R1,50) AND R2 50 AND R3 50 AND C O AND MA5 MA1,COLORWHITE,LINETHICK3;
黄K线:CROSS(R1,50) AND R2 50 AND R3 50 AND CROSS(MA5,MA1),COLORYELLOW,LINETHICK3;
追击涨停1:慢线 20 AND 快线 20 AND (C-REF(C,1))/REF(C,1)*100 =4 AND
EXIST(CROSS(20,慢线),2) AND LONGCROSS(CCI,200,5) AND EXIST(L P60,3)COLORRED,LINETHICK3;
追击涨停2:CCI 100 AND 快线 20 AND (C-REF(C,1))/REF(C,1)*100 =4 AND
LONGCROSS(20,慢线,5) AND EXIST(L P60,3)COLORRED,LINETHICK3;
黄箭球:DRAWICON(J REF(J,1) AND REF(J REF(J,1),1) AND
MA1 REF(MA1,1) AND REF(MA1 REF(MA1,1),1) AND MA2 MA3 AND
MA3 MA4 AND EXIST(K D,2) AND EXIST(L MA2,2) AND EXIST(MA1 MA2,2) AND MA1 MA2,0,34);
红球:DRAWICON(J REF(J,1) AND REF(J REF(J,1),1) AND
MA1 REF(MA1,1) AND REF(MA1 REF(MA1,1),1) AND MA2 MA3 AND
MA3 MA4 AND EXIST(K D,2) AND EXIST(L MA2,2) AND EXIST(MA1 MA2,2) AND
MA1 MA2 AND EXIST(CROSS(MA2,MA1),3) AND CROSS(MA1,MA2),1,13);
买1:J REF(J,1) AND REF(J REF(J,1),1) AND
MA1 =MA2 AND MA2 MA3 AND MA3 MA4 AND EXIST(K D,2) AND EXIST(L MA1,2);
买2:J REF(J,1) AND REF(J REF(J,1),1) AND
MA1 REF(MA1,1) AND REF(MA1 REF(MA1,1),1) AND MA2 MA3 AND MA3 MA4 AND EXIST(K D,2) AND EXIST(L MA1,2);
买3:J REF(J,1) AND REF(J REF(J,1),1) AND CROSS(M2,M5) AND
MA1 =MA2 AND MA2 MA3 AND MA3 MA4 AND EXIST(K D,2) AND EXIST(L MA2,2);
买4:J REF(J,1) AND REF(J REF(J,1),1) AND CROSS(M2,M5) AND
MA1 REF(MA1,1) AND REF(MA1 REF(MA1,1),1) AND MA2 MA3 AND MA3 MA4 AND EXIST(K D,2) AND EXIST(L MA2,2)COLORCYAN,LINETHICK1;
买5:J REF(J,1) AND REF(J REF(J,1),1) AND CROSS(M2,M5) AND
MA1 REF(MA1,1) AND REF(MA1 REF(MA1,1),1) AND MA2 MA3 AND MA3 MA4 AND EXIST(K D,2) AND EXIST(MA1 MA2,2) AND EXIST(L MA3,2)COLORCYAN;
DRAWICON(CCI 100 AND 快线 20 AND (C-REF(C,1))/REF(C,1)*100 =4 AND
LONGCROSS(20,慢线,5) AND EXIST(L P60,3),0.2,34);
DRAWICON(慢线 20 AND 快线 20 AND (C-REF(C,1))/REF(C,1)*100 =4 AND
EXIST(CROSS(20,慢线),2) AND LONGCROSS(CCI,200,5) AND EXIST(L P60,3),0.5,14);
阴线后上拐买:EVERY( R2 R3,4) AND R3 =REF(R3,1)AND REF(R3 REF(R3,1),1) AND EXIST(R1 R2,2) AND EVERY(MA1 MA2 AND MA2 MA3,3),COLORBROWN;
阴线后上拐:EVERY( R2 R3,4) AND R3 =REF(R3,1)AND REF(R3 REF(R3,1),1) AND EVERY( R1 R2,4) AND R2 75 AND R3 50 AND EVERY(MA1 MA2 AND MA2 MA3,3),COLORBLUE;
阴线买:EVERY(MA1 MA2 AND MA2 MA3,4) AND L MA1 AND R2 R3 AND R3 70 AND C O AND C REF(C,1);
阴线:=MA1 MA2 AND MA2 MA3 AND L MA1 AND R2 R3 AND R3 75 AND EVERY(C O,1) AND C REF(C,1) AND EVERY(MA1 MA2 AND MA2 MA3,3);
阴线后小阳:REF(阴线,1) AND (C-REF(C,1))/REF(C,1)*100 =2 AND C
黄K线1:DRAWICON(CROSS(R1,50) AND R2 50 AND R3 50 AND CROSS(MA5,MA1),1,41);
提前埋伏1:DRAWICON(CROSS(R1,50) AND R2 50 AND R3 50 AND C O AND MA5 MA1,1,40);