副图公式源码 支持: 手机/电脑
MA1:MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,30);
MA4:MA(CLOSE,30);
GUP1:=1;
GUP2:=(CLOSE-MA(CLOSE,30))/MA(CLOSE,30)*100;
GUP3:=CLOSE>OPEN AND OPEN-LOW>HIGH-CLOSE;
GUP4:=REF(GUP2,1)<-20 AND GUP3;
GUP5:=REF(GUP2,1)<-20 AND CLOSE>OPEN AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*1000>20;
GUP6:=FILTER(GUP4 OR GUP5,3);
GUP7:=OPEN>CLOSE AND HIGH-IF(CLOSE>OPEN,CLOSE,OPEN)>IF(OPEN<CLOSE,OPEN,CLOSE)-LOW;
GUP8:=REF(GUP2,1)>ABS(-20) AND GUP7;
GUP9:=REF(GUP2,1)>ABS(-20) AND CLOSE<OPEN AND (REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)*1000>20;
GUPA:=FILTER(GUP8 OR GUP9,3);
GUPB:=CLOSE>OPEN AND OPEN-LOW>HIGH-CLOSE;
GUPC:=REF(GUP2,1)<-13 AND GUP3;
GUPD:=REF(GUP2,1)<-13 AND CLOSE>OPEN AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*1000>20;
GUPE:=FILTER(GUPC OR GUPD,3);
GUPF:=OPEN>CLOSE AND HIGH-IF(CLOSE>OPEN,CLOSE,OPEN)>IF(OPEN<CLOSE,OPEN,CLOSE)-LOW;
GUP10:=REF(GUP2,1)>ABS(-13) AND GUP7;
GUP11:=REF(GUP2,1)>ABS(-13) AND CLOSE<OPEN AND (REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)*1000>20;
GUP12:=FILTER(GUP10 OR GUP11,3);
DRAWICON(GUP6*GUP1>0,LOW,1);
DRAWICON(GUPA*GUP1>0,HIGH,2);
DRAWTEXT(GUPE*GUP1>0,1.02*REF(CLOSE,1),'短买'),COLORGREEN;
DRAWTEXT(GUP12*GUP1>0,0.99*REF(CLOSE,1),'风险'),COLORYELLOW;
选股公式源码:
{选股公式一:短买}
GUP1:=1;
GUP2:=(CLOSE-MA(CLOSE,30))/MA(CLOSE,30)*100;
GUP3:=CLOSE>OPEN AND OPEN-LOW>HIGH-CLOSE;
GUP7:=OPEN>CLOSE AND HIGH-IF(CLOSE>OPEN,CLOSE,OPEN)>IF(OPEN<CLOSE,OPEN,CLOSE)-LOW;
GUP8:=REF(GUP2,1)>ABS(-20) AND GUP7;
GUP9:=REF(GUP2,1)>ABS(-20) AND CLOSE<OPEN AND (REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)*1000>20;
GUPA:=FILTER(GUP8 OR GUP9,3);
GUPB:=CLOSE>OPEN AND OPEN-LOW>HIGH-CLOSE;
GUPC:=REF(GUP2,1)<-13 AND GUP3;
GUPD:=REF(GUP2,1)<-13 AND CLOSE>OPEN AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*1000>20;
GUPE:=FILTER(GUPC OR GUPD,3);
短买:GUPE*GUP1>0;
{选股公式二:红箭头}
GUP1:=1;
GUP2:=(CLOSE-MA(CLOSE,30))/MA(CLOSE,30)*100;
GUP3:=CLOSE>OPEN AND OPEN-LOW>HIGH-CLOSE;
GUP4:=REF(GUP2,1)<-20 AND GUP3;
GUP5:=REF(GUP2,1)<-20 AND CLOSE>OPEN AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*1000>20;
GUP6:=FILTER(GUP4 OR GUP5,3);
红箭头:GUP6*GUP1>0;
|