1、通达信 BS 主图指标M5:MA(CLOSE,5),COLORWHITE;M10:MA(CLOSE,10),COLORYELLOW;M20:MA(CLOSE,20),COLORRED;M60:MA(CLOSE,60),COLORGREEN;VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3)/VAR3;VAR5:=(CLOSE-LLV(LOW,528)/(HHV(HIGH,528)-LLV(LOW,528)*100;VAR6:=(CLOSE-LLV(CLOSE,530)/(HHV(CLOSE,530)-LLV(CLOSE,530)*100;VAR7:=0;VAR
2、8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1),7,1)*100;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1),13,1)*100;VARA:=BARSCOUNT(CLOSE);VARB:=VAR835;VARC:=VARB AND COUNT(VARB,1)=1;VARD:=EMA(CLOSE,21)-EMA(CLOSE,8);VARE:=EMA(VARD,5);VARF:=TROUGHBARS(3,6,1)LOW+0
3、.04,4,0);VAR11:=ZIG(3,6)REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)=REF(ZIG(3,22),3);VAR15:=ZIG(3,51)REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)=REF(ZIG(3,51),2) AND REF(
4、ZIG(3,51),2)=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)=REF(ZIG(3,72),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);VAR1A:=EMA(VAR19,100);VAR1B:=2*(VAR19-VAR1A);VAR1C:=POW(VAR1B,3)*0.1+POW(VAR1B,1);VAR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE);VAR1E:
5、=EMA(VAR1D*0.97,3);VAR1F:=(HIGH+LOW+CLOSE)/3;VAR20:=(VAR1F-MA(VAR1F,14)/(0.015*AVEDEV(VAR1F,14);VAR21:=CROSS(VAR1E,LOW);买 1:=VAR10;买 2:=(VAR11+VAR13+VAR15+VAR17);卖 1:=(VAR12+VAR14+VAR16+VAR18);VAR22:=买 1 AND VARF AND VARC AND VAR21 AND VAR4=VAR1 AND VAR1A=VARC AND VAR150 AND VAR180,0.5,0);DRAWICON(买
6、 30,LOW-0.01,4);买线:=EMA(CLOSE,2);卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);B1 买:IF(买 10 OR 买 20,LOW-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORRED;B2 买:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;S1 卖:IF(卖 10,HIGH+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;S2 卖:IF(CROSS( 卖线,买线),H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORLIGRAY;