副图公式源码支持 手机/电脑
MA8:=MA(CLOSE,8);
MA50:=MA(CLOSE,50);
GUP1:=(((CLOSE-MA50)/MA50)<0.008);
GUP2:=(((CLOSE-MA8)/MA8)<0.058);
偏离率:=(((GUP1=1) AND (GUP2=1))*0.2);
向上突破:=((((偏离率=0) AND (REF(偏离率,1)=0.2)) AND (REF((COUNT((偏离率=0.2),10)=10),1)=1)) * 1);
DRAWTEXT(向上突破,0.82,'突破'),COLORRED;
STICKLINE(向上突破,0.85,0.88,0.1,0),COLORRED,LINETHICK3;
GUA1:=MA(C,2);
GUB1:=MA(C,9);
GUA2:=CROSS(GUA1,GUB1);
GUB2:=CROSS(GUB1,GUA1);
上穿:=BARSLAST(GUA2);
涨幅:=(HHV(C,上穿+8)-LLV(C,上穿+8))/LLV(C,上穿+8);
牛股:=涨幅<=0.15 AND 上穿>=6 AND COUNT(GUB2,上穿)<=0;
STICKLINE(牛股,0.65,0.68,0.1,0),COLORRED,LINETHICK3;
DRAWTEXT(牛股 AND COUNT(牛股,2)=1,0.62,'牛股显形'),COLORRED;
选股公式源码
{选股公式一:牛股显形}
MA8:=MA(CLOSE,8);
MA50:=MA(CLOSE,50);
GUP1:=(((CLOSE-MA50)/MA50)<0.008);
GUP2:=(((CLOSE-MA8)/MA8)<0.058);
GUA1:=MA(C,2);
GUB1:=MA(C,9);
GUA2:=CROSS(GUA1,GUB1);
GUB2:=CROSS(GUB1,GUA1);
上穿:=BARSLAST(GUA2);
涨幅:=(HHV(C,上穿+8)-LLV(C,上穿+8))/LLV(C,上穿+8);
牛股:=涨幅<=0.15 AND 上穿>=6 AND COUNT(GUB2,上穿)<=0;
{STICKLINE(牛股,0.65,0.68,0.1,0),COLORRED,LINETHICK3;
DRAWTEXT(牛股 AND COUNT(牛股,2)=1,0.62,'牛股显形'),COLORRED;}
牛股显形:牛股 AND COUNT(牛股,2)=1;
{选股公式二:突破}
MA8:=MA(CLOSE,8);
MA50:=MA(CLOSE,50);
GUP1:=(((CLOSE-MA50)/MA50)<0.008);
GUP2:=(((CLOSE-MA8)/MA8)<0.058);
GUA1:=MA(C,2);
GUB1:=MA(C,9);
GUA2:=CROSS(GUA1,GUB1);
GUB2:=CROSS(GUB1,GUA1);
偏离率:=(((GUP1=1) AND (GUP2=1))*0.2);
向上突破:=((((偏离率=0) AND (REF(偏离率,1)=0.2)) AND (REF((COUNT((偏离率=0.2),10)=10),1)=1)) * 1);
{DRAWTEXT(向上突破,0.82,'突破'),COLORRED;
STICKLINE(向上突破,0.85,0.88,0.1,0),COLORRED,LINETHICK3;}
突破:向上突破; |