通达信擒龙抓牛主升浪涨停幅图指标选股公式源码:
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
A:=MA5>MA10 AND MA10>MA20 AND MA20>MA30;
DIF:=EMA(CLOSE,12) – EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);
A1:=DIF>=0 AND DEA>=0 AND REF(MACD,2)>=REF(MACD,1) AND REF(MACD,1)<MACD{ AND REF(DEA,1)<REF(MACD,1)} AND MACD>0;
RRF:=A AND A1 AND REF(C,1)*1.06<=C;
STICKLINE(IF(RRF,120,0),50,40,3,0),COLORRED;
STICKLINE(IF(RRF,120,0),40,0,3,0),COLORYELLOW;
DRAWTEXT(RRF,48,’◆’),COLORYELLOW;
DRAWTEXT(RRF,42,’天’),COLORYELLOW;
DRAWTEXT(RRF,36,’龙’),COLORRED;
DRAWTEXT(RRF,30,’八’),COLORRED;
DRAWTEXT(RRF,24,’部’),COLORRED;
DRAWTEXT(RRF,16,’擒’),COLORRED;
DRAWTEXT(RRF,10,’龙’),COLORRED;
DRAWTEXT(RRF,4,’◆’),COLORRED;
DRAWICON(RRF,53,1);
每股净资产:FINANCE(34),NODRAW,COLORRED;
每股公积金:FINANCE(18),NODRAW,COLORGREEN;
未分配利润:FINANCE(32),NODRAW,COLORMAGENTA;
选股公式:
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
A:=MA5>MA10 AND MA10>MA20 AND MA20>MA30;
DIF:=EMA(CLOSE,12) – EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);
A1:=DIF>=0 AND DEA>=0 AND REF(MACD,2)>=REF(MACD,1) AND REF(MACD,1)<MACD{ AND REF(DEA,1)<REF(MACD,1)} AND MACD>0;
RRF:=A AND A1 AND REF(C,1)*1.06<=C;
XG:RRF;