公式包含:牛二主图(技术指标)和 黄牛二春(选股预警)
牛二主图源码:
MA3:=MA(C,3);
CY:=EMA((EMA(C*V,3)/EMA(V,3)+EMA(C*V,6)/EMA(V,6)
+EMA(C*V,12)/EMA(V,12)+EMA(C*V,24)/EMA(V,24))/4,18);
支撑:=1.06*CY,LINETHICK2;
MA5:MA(C,5);
上轨:=XS.LUP;
多空:(EMA(CLOSE,3)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4;
涨停:=C>REF(C,1)*1.098 AND C=H ; STICKLINE(涨停,C,O,0,0)COLORWHITE;
STICKLINE(C>REF(C,1) AND C<O ,C,O,1.5,0)COLORRED;
STICKLINE(C<REF(C,1) AND C>O ,C,O,1.2,0)COLORGREEN;
牛二1:=REF(COUNT(MA5>上轨,7)>=1 AND(MA5>REF(MA5,1) OR C>REF(C,1)OR C>O),1)AND CROSS(C,MA5) AND C>支撑 AND MA5>REF(MA5,1) AND C>O AND C>REF(C,1)*1.015 ;
牛二2:=REF(COUNT(MA5>上轨,8)>=1 AND CROSS(C,MA5),1) AND MA5>REF(MA5,1) AND C>O AND C>REF(C,1)*1.015 ;
牛二3:=REF(COUNT(EVERY(涨停 AND C>O,3),6)>=1 AND(MA5>REF(MA5,1) OR C>REF(C,1)OR C>O),1)AND CROSS(C,MA5) AND C>支撑 AND MA5>REF(MA5,1) AND C>O AND C>REF(C,1)*1.015 ;
DRAWTEXT(牛二1 OR 牛二2 OR 牛二3,L*0.96,'牛二')COLORCYAN;
黄牛二春源码:
去停牌:=DYNAINFO(13)>0;
MA3:=MA(C,3);
MA5:=MA(C,5);
上轨:=XS.LUP;
CY:=EMA((EMA(C*V,3)/EMA(V,3)+EMA(C*V,6)/EMA(V,6)
+EMA(C*V,12)/EMA(V,12)+EMA(C*V,24)/EMA(V,24))/4,18);
支撑:=1.06*CY;
涨停:=C>REF(C,1)*1.098 AND C=H;
牛二1:=REF(COUNT(MA5>上轨,7)>=1 AND(MA5>REF(MA5,1) OR C>REF(C,1)OR C>O),1)AND CROSS(C,MA5) AND C>支撑 AND MA5>REF(MA5,1) AND C>O AND C>REF(C,1)*1.015 ;
牛二2:=REF(COUNT(MA5>上轨,7)>=1 AND CROSS(C,MA5),1) AND C<上轨 AND C>支撑 AND MA5>REF(MA5,1) AND C>O AND C>REF(C,1)*1.015 ;
牛二3:=REF(COUNT(EVERY(涨停 AND C>O,3),6)>=1 AND(MA5>REF(MA5,1) OR C>REF(C,1)OR C>O),1)AND CROSS(C,MA5) AND C>支撑 AND MA5>REF(MA5,1) AND C>O AND C>REF(C,1)*1.015 ;
预警:( 牛二1 OR 牛二2 OR 牛二3)AND 去停牌 ;