副图公式源码支持 手机/电脑
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=REF(VOL,1)<REF(VOL,2) AND REF(VOL,2)<REF(VOL,3) AND REF(VOL,1)<0.5*REF(VOL,3);
GUP2:=REF(VOL,0)<REF(VOL,1) AND REF(VOL,1)<REF(VOL,2) AND REF(VOL,2)<REF(VOL,3) AND REF(VOL,0)<0.5*REF(VOL,3);
GUP3:=GUP1 OR GUP2;
GUP4:=MIN(MIN(MIN(MIN(MIN(REF(MA(VOL,5),6),REF(MA(VOL,5),7)),REF(MA(VOL,5),8)),REF(MA(VOL,10),6)),REF(MA(VOL,10),7)),REF(MA(VOL,10),8));
GUP5:=G4/REF(G1,1)>1.098 AND G4/REF(G1,1)<1.205;
GUP6:=REF(COUNT(GUP5,3)>0,3) AND REF(VOL,3)=HHV(VOL,8) AND REF(VOL,3)>5*GUP4 AND GUP3;
GUP7:=BARSLAST(GUP6);
GUP8:=LLV(VOL,GUP7);
GUP9:=MIN(REF(MA(VOL,5),GUP7+4),REF(MA(VOL,5),GUP7+5));
GUP10:=GUP8<2*GUP9;
GUP11:=VOL>2*LLV(VOL,BARSLAST(VOL=HHV(VOL,20))) AND VOL>2*GUP8 AND G1/MIN(G2,REF(G1,1))>1.05 AND G1/G3>1.01 AND G1/MAX(REF(G1,GUP7+2),REF(G1,GUP7+3))<1.1;
GUP12:=REF(COUNT(GUP6,50)>0,1) AND GUP10 AND GUP11 AND COUNT(GUP11,GUP7)<=2;
STICKLINE(GUP12,G3,G1,3,0),COLORMAGENTA;
DRAWTEXT(GUP12,G2,'启爆'),COLORRED;
DRAWICON(GUP12,G2,1);
GUP13:=(G1/REF(G1,1)<0.95 OR G1/G3<0.95) AND REF(HHV(VOL,3),1)>REF(HHV(VOL,5),GUP7) AND (REF(VOL,1)>REF(VOL,2) OR REF(VOL,2)>REF(VOL,3));
DRAWTEXT(GUP7<70 AND GUP13 AND COUNT(GUP13,GUP7)<=2,G3,'逃顶'),COLORGREEN;
DRAWICON(GUP7<70 AND GUP13 AND COUNT(GUP13,GUP7)<=2,G4,2);
选股公式源码
{选股公式:启爆}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=REF(VOL,1)<REF(VOL,2) AND REF(VOL,2)<REF(VOL,3) AND REF(VOL,1)<0.5*REF(VOL,3);
GUP2:=REF(VOL,0)<REF(VOL,1) AND REF(VOL,1)<REF(VOL,2) AND REF(VOL,2)<REF(VOL,3) AND REF(VOL,0)<0.5*REF(VOL,3);
GUP3:=GUP1 OR GUP2;
GUP4:=MIN(MIN(MIN(MIN(MIN(REF(MA(VOL,5),6),REF(MA(VOL,5),7)),REF(MA(VOL,5),8)),REF(MA(VOL,10),6)),REF(MA(VOL,10),7)),REF(MA(VOL,10),8));
GUP5:=G4/REF(G1,1)>1.098 AND G4/REF(G1,1)<1.205;
GUP6:=REF(COUNT(GUP5,3)>0,3) AND REF(VOL,3)=HHV(VOL,8) AND REF(VOL,3)>5*GUP4 AND GUP3;
GUP7:=BARSLAST(GUP6);
GUP8:=LLV(VOL,GUP7);
GUP9:=MIN(REF(MA(VOL,5),GUP7+4),REF(MA(VOL,5),GUP7+5));
GUP10:=GUP8<2*GUP9;
GUP11:=VOL>2*LLV(VOL,BARSLAST(VOL=HHV(VOL,20))) AND VOL>2*GUP8 AND G1/MIN(G2,REF(G1,1))>1.05 AND G1/G3>1.01 AND G1/MAX(REF(G1,GUP7+2),REF(G1,GUP7+3))<1.1;
GUP12:=REF(COUNT(GUP6,50)>0,1) AND GUP10 AND GUP11 AND COUNT(GUP11,GUP7)<=2;
启爆:GUP12;
{卖出公式:逃顶}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=REF(VOL,1)<REF(VOL,2) AND REF(VOL,2)<REF(VOL,3) AND REF(VOL,1)<0.5*REF(VOL,3);
GUP2:=REF(VOL,0)<REF(VOL,1) AND REF(VOL,1)<REF(VOL,2) AND REF(VOL,2)<REF(VOL,3) AND REF(VOL,0)<0.5*REF(VOL,3);
GUP3:=GUP1 OR GUP2;
GUP4:=MIN(MIN(MIN(MIN(MIN(REF(MA(VOL,5),6),REF(MA(VOL,5),7)),REF(MA(VOL,5),8)),REF(MA(VOL,10),6)),REF(MA(VOL,10),7)),REF(MA(VOL,10),8));
GUP5:=G4/REF(G1,1)>1.098 AND G4/REF(G1,1)<1.205;
GUP6:=REF(COUNT(GUP5,3)>0,3) AND REF(VOL,3)=HHV(VOL,8) AND REF(VOL,3)>5*GUP4 AND GUP3;
GUP7:=BARSLAST(GUP6);
GUP13:=(G1/REF(G1,1)<0.95 OR G1/G3<0.95) AND REF(HHV(VOL,3),1)>REF(HHV(VOL,5),GUP7) AND (REF(VOL,1)>REF(VOL,2) OR REF(VOL,2)>REF(VOL,3));
逃顶:GUP7<70 AND GUP13 AND COUNT(GUP13,GUP7)<=2;
|