以下是通达信金准打牛源码

金准打牛源码

VAR1:=EMA((EMA(CLOSE*VOL,3)/EMA(VOL,3)+EMA(CLOSE*VOL,6)/EMA(VOL,6)+EMA(CLOSE*VOL,12)/EMA(VOL,12)+EMA(CLOSE*VOL,24)/EMA(VOL,24))/4,18);
 VAR2:=1.06*VAR1;
 VAR3:=MA(CLOSE,5);
 VAR4:=XS.LUP;
 VAR5:=(EMA(CLOSE,3)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4;
 VAR6:=CLOSE>REF(CLOSE,1)*1.098 AND CLOSE=HIGH;
 VAR7:=REF(COUNT(VAR3>VAR4,7)>=1 AND (VAR3>REF(VAR3,1) OR CLOSE>REF(CLOSE,1) OR CLOSE>OPEN),1) AND CROSS(CLOSE,VAR3) AND CLOSE>VAR2 AND VAR3>REF(VAR3,1) AND CLOSE>OPEN AND CLOSE>REF(CLOSE,1)*1.015;
 VAR8:=REF(COUNT(VAR3>VAR4,8)>=1 AND CROSS(CLOSE,VAR3),1) AND VAR3>REF(VAR3,1) AND CLOSE>OPEN AND CLOSE>REF(CLOSE,1)*1.015;
 VAR9:=REF(COUNT(EVERY(VAR6 AND CLOSE>OPEN,3),6)>=1 AND (VAR3>REF(VAR3,1) OR CLOSE>REF(CLOSE,1) OR CLOSE>OPEN),1) AND CROSS(CLOSE,VAR3) AND CLOSE>VAR2 AND VAR3>REF(VAR3,1) AND CLOSE>OPEN AND CLOSE>REF(CLOSE,1)*1.015;
金准打牛:VAR7 OR VAR8 OR VAR9,COLORRED,LINETHICK2;
 DRAWTEXT(金准打牛,0.58,44),COLORRED;
 
 

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