通达信牛股低开指标公式
通达信来抓疯牛选股指标公式
通达信牛股低开指标公式:
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=2*(DIF-DEA);
MA5:=MA(C,5);
MA20:=MA(C,20);
A51:= REF(MA5,1)*0.98;
A52:= REF(MA5,2)*0.98;
B52:= BArslAst(REF(C,2)>=REF(MA5,2) AND REF(C,1)<REF(MA5,1))+2;
B51:= BARSLAST(REF(C,2)>=REF(MA5,2) AND REF(C,1)<REF(MA5,1))+1;
DZ:=IF((REF(C,2)>=REF(MA5,2)) AND (REF(C,1)<REF(MA5,1)),IF(REF(MA5,2)<REF(MA5,1),A51,A52),IF(BARSSINCE(REF(C,2)>=REF(MA5,2) AND REF(C,1)<REF(MA5,1))>0,IF(REF(MA5, B52)< REF(MA5, B51),REF(MA5,B51)*0.98, REF(MA5,B52)*0.98), REF(MA5,1)));
A201:= REF(MA20,1)*0.98;
A202:= REF(MA20,2)*0.98;
B202:= BARSLAST(REF(C,2)>=REF(MA20,2) AND REF(C,1)<REF(MA20,1))+2;
B201:= BARSLAST(REF(C,2)>=REF(MA20,2) AND REF(C,1)<REF(MA20,1))+1;
ZZ:=IF((REF(C,2)>=REF(MA20,2)) AND (REF(C,1)<REF(MA20,1)),IF(REF(MA20,2)<REF(MA20,1),A201,A202),IF(BARSSINCE(REF(C,2)>=REF(MA20,2) AND REF(C,1)<REF(MA20,1))>0,IF(REF(MA20, B202)< REF(MA20, B201),REF(MA20,B201)*0.98, REF(MA20,B202)*0.98), REF(MA20,1)));
短止:=DZ,COLORWHITE,LINETHICK2;
紫线:=ZZ,COLORMAGENTA;
绿线:=LLV(REF(LOW,1),2)+(HHV(REF(HIGH,1),2)-LLV(REF(LOW,1),2))/2,COLORGREEN;
黄线:=MA(CLOSE,25)+MA(CLOSE,25)*6/100,COLORYELLOW,LINETHICK2;
白轨:=MA(CLOSE,25)+MA(CLOSE,25)*20/100,COLORWHITE;
影子线:=MA(CLOSE,25)+MA(CLOSE,25)*13/100,COLORGRAY;
AZZ:=LLV(REF(LOW,1),2)+(HHV(REF(HIGH,1),2)-LLV(REF(LOW,1),2))/2,COLORGREEN;
AXX:=((((MA(C,10) > MA(C,25)) && crOSS(C,MA(C,5))) && (V > MA(V,10))) && (MA(C,10) > REF(MA(C,10),1)));
ASS:=C>=黄线 AND AXX ;
角度黄线:=ATAN((黄线/REF(黄线,1)-1)*100)*180/3.1416;
S:=BARSLAST(妖股);
{去停牌和ST股}
去科创板:=IF(CODELIKE('688'),0,1); {通达信去科创板}
ST:=NOT(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S'));
停牌:=DYNAINFO(8)>0;
基础去杂:=ST AND 停牌 AND 去科创板;
ZT:=C/REF(C,1)>1.095 AND C=H;
ZTS:=COUNT(ZT,3)>=1;
DF:=REF(V,1)<(REF(V,2)+REF(V,3) );
DK:=O<REF(C,1);
SSTS:=BARSCOUNT(C)>35;
ZF:=REF(C,1)/REF(L,1)<1.15 OR REF(H,1)/REF(L,1)<1.15;
靠近20线:=(C-MA(C,20))/MA(C,20);
低开有肉:=ZTS AND DK AND 基础去杂 AND DF AND SSTS AND ZF AND 靠近20线;
bias:=(O-黄线)/黄线*100;
低开:S>=1 AND S<=7 AND 低开有肉 AND 角度黄线>10 AND BIAS>-4 AND C>O ;
STICKLINE(低开,0.2,0.6,2.5,0),COLORYELLOW;
STICKLINE(低开,0,0.3,4,0),COLORLIMAGENTA;
DRAWICON(低开,0.7,25);
通达信一招断牛熊主图指标公式