副图公式 源码支持手机/电脑
GUP0:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5);
GUA:=(GUP0)*100,STICK;GUP1:=5;
STICKLINE(GUP0>0,0,GUA,2.5,0),COLORRED;
STICKLINE(GUP0>0,0,GUA,2.5,0),COLOR9933FF;
STICKLINE(GUP0>0,0,GUA,2,0),COLOR000099;
STICKLINE(GUP0>0,0,GUA,1.5,0),COLOR0000CC;
STICKLINE(GUP0>0,0,GUA,1,0),COLOR0000FF;
STICKLINE(GUP0>0,0,GUA,0,0),COLOR0033FF;
STICKLINE(GUP0<0,0,GUA,2.5,0),COLORCYAN;
STICKLINE(GUP0<0,0,GUA,2.5,0),COLOR009900;
STICKLINE(GUP0<0,0,GUA,2,0),COLOR00CC00;
STICKLINE(GUP0<0,0,GUA,1.5,0),COLOR33FF00;
STICKLINE(GUP0<0,0,GUA,1,0),COLOR33FF00;
STICKLINE(GUP0<0,0,GUA,0,0),COLOR33FF00;
GUA1:=EMA(GUA,GUP1)*GUP1,COLORMAGENTA;
GUA2:=MA(GUA1,3),COLORGREEN;
GUA3:=MA(GUA1,5),COLORWHITE;
GUB0:=(LLV(CLOSE,3)-HHV(CLOSE,13))/HHV(CLOSE,13)*100<-13;
GUB1:=CROSS(GUA1,GUA2) AND GUB0 AND LLV(GUA1,3)-REF(GUA1,13)<-25 AND GUA3<-8;
GUB2:=GUB1 AND (LLV(GUA2,3)>LLV(GUA2,39) OR LLV(GUA3,3)>LLV(GUA3,39));
GUB3:=(LLV(GUA2,3)>LLV(GUA2,44) OR LLV(GUA3,3)>LLV(GUA3,44)) AND CROSS(GUA1,GUA2) AND COUNT(GUA1<-22,3) >= 1;
GUB4:=(REF(GUA1,1)<REF(GUA1,2) AND GUA1>REF(GUA1,1)) OR CROSS(GUA1,GUA2);
GUB5:=(GUB4 OR CROSS(GUA1,GUA3)) AND COUNT(GUA1<-5,3) >= 1 AND GUA1-REF(GUA1,1)>1;
N:=9;M1:=3;M2:=3;
RSV:=(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N))*100;
LWR1:=SMA(RSV,M1,1);
LWR2:=SMA(LWR1,M2,1);
买入:FILTER(GUB5 AND LWR1<REF(LWR1,1),2),COLORYELLOW;
抄底:FILTER(GUB2,3) OR FILTER(GUB3 AND GUA1-REF(GUA1,1)>1,2),COLORYELLOW;
DRAWTEXT(买入,5,'买入'),COLORYELLOW;
STICKLINE(买入,-10,20,0,0),COLORYELLOW;
DRAWTEXT(抄底,15,'抄底'),COLORYELLOW;
STICKLINE(抄底,-10,20,0,0),COLORYELLOW;
选股公式源码
{选股公式一:买入}
GUP0:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5);
GUA:=(GUP0)*100;GUP1:=5;
GUA1:=EMA(GUA,GUP1)*GUP1,COLORMAGENTA;
GUA2:=MA(GUA1,3),COLORGREEN;
GUA3:=MA(GUA1,5),COLORWHITE;
GUB0:=(LLV(CLOSE,3)-HHV(CLOSE,13))/HHV(CLOSE,13)*100<-13;
GUB1:=CROSS(GUA1,GUA2) AND GUB0 AND LLV(GUA1,3)-REF(GUA1,13)<-25 AND GUA3<-8;
GUB2:=GUB1 AND (LLV(GUA2,3)>LLV(GUA2,39) OR LLV(GUA3,3)>LLV(GUA3,39));
GUB3:=(LLV(GUA2,3)>LLV(GUA2,44) OR LLV(GUA3,3)>LLV(GUA3,44)) AND CROSS(GUA1,GUA2) AND COUNT(GUA1<-22,3) >= 1;
GUB4:=(REF(GUA1,1)<REF(GUA1,2) AND GUA1>REF(GUA1,1)) OR CROSS(GUA1,GUA2);
GUB5:=(GUB4 OR CROSS(GUA1,GUA3)) AND COUNT(GUA1<-5,3) >= 1 AND GUA1-REF(GUA1,1)>1;
N:=9;M1:=3;M2:=3;
RSV:=(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N))*100;
LWR1:=SMA(RSV,M1,1);
LWR2:=SMA(LWR1,M2,1);
买入:FILTER(GUB5 AND LWR1<REF(LWR1,1),2),COLORYELLOW;
{选股公式二:抄底}
GUP0:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5);
GUA:=(GUP0)*100;GUP1:=5;
GUA1:=EMA(GUA,GUP1)*GUP1,COLORMAGENTA;
GUA2:=MA(GUA1,3),COLORGREEN;
GUA3:=MA(GUA1,5),COLORWHITE;
GUB0:=(LLV(CLOSE,3)-HHV(CLOSE,13))/HHV(CLOSE,13)*100<-13;
GUB1:=CROSS(GUA1,GUA2) AND GUB0 AND LLV(GUA1,3)-REF(GUA1,13)<-25 AND GUA3<-8;
GUB2:=GUB1 AND (LLV(GUA2,3)>LLV(GUA2,39) OR LLV(GUA3,3)>LLV(GUA3,39));
GUB3:=(LLV(GUA2,3)>LLV(GUA2,44) OR LLV(GUA3,3)>LLV(GUA3,44)) AND CROSS(GUA1,GUA2) AND COUNT(GUA1<-22,3) >= 1;
抄底:FILTER(GUB2,3) OR FILTER(GUB3 AND GUA1-REF(GUA1,1)>1,2),COLORYELLOW; |