杀空誓追涨停(通达信公式 副图 源码 测试图)
{杀空誓追涨停}MID:= MA(CLOSE,7);UPPER:= MID + 30*STD(CLOSE,7);LOWER:= MID - 30*STD(CLOSE,7);MA3:=MA(C,3);A1:=(UPPER-MA3)/(MA3-LOWER);空头:IF(A1>100,100,A1),COLORGREEN;B1:=(MA3-LOWER)/(UPPER-MA3);多头:IF(B1>100,100,B1),COLORRED;地线:0.938,COLORWHITE;天线:1.062,COLORYELLOW;QQ:IF(B1>100,100,B1)/15,COLORRED;YY:IF(B1>100,100,B1)/10,COLORRED;B:-1*(HHV(H,6)-C)/(HHV(HIGH,6)-LLV(L,6))+1,COLORFFFF80;FF:IF(B=1,0.8,0),COLOR008080;CC:IF(B=0,0.5,1),COLOR00FF00;DRAWTEXT(CROSS(B,0.99),0.5,'涨停'),COLOR0000FF;追涨停:IF(C>REF(C,1)*1.0985,0.6,0),COLORFF0000;杀跌停:IF(C<REF(C,1)*0.902,0.5,1),COLOR00FF00;DRAWTEXT(C>REF(C,1)*1.0985,0.3.5,'追涨'),COLOR0000FF;
DRAWTEXT(C<REF(C,1)*0.902,0.6,'杀跌'),COLORFFFF00;