以下是通达信牛二公 副图源码

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 ;
牛二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 ;  
牛二:牛二1 OR 牛二2 OR 牛二3,COLORMAGENTA,LINETHICK2;
 DRAWTEXT(牛二,0.58,’●牛二’),COLORYELLOW;
 DRAWICON(牛二,牛二,9);

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。