1、多空预警副图指标 源码 通达信CHECK1:=-1;VAR1:=IF(CHECK10,(HIGH+LOW+CLOSE)/3,0);VAR2:=IF(CHECK10,(VAR1-MA(VAR1,14)/(0.015*AVEDEV(VAR1,14),0);VAR3:=IF(CHECK10,(VAR1-MA(VAR1,70)/(0.015*AVEDEV(VAR1,70),0);VAR4:=IF(CHECK1=150 AND VAR2=150 AND VAR3200,10,0),0);VAR5:=IF(CHECK10,IF(VAR2-200 AND VAR3-200,-10,VAR4),0);VAR6
2、:=IF(CHECK10,(CLOSE-MA(CLOSE,13)/MA(CLOSE,13)*100,0);VAR7:=IF(CHECK10,100-ABS(VAR6),0);VAR8:=IF(CHECK10,IF(VAR790,VAR7,100),0);PJX:=IF(CHECK10,PJX,0);VAR1B:=IF(VAR3=200 AND VAR2=150,15,IF(VAR3=-200 AND VAR248 AND VAR1B60 AND VAR8100;VAR1D:=VAR1A48 AND VAR1B60 AND VAR8=200 AND VAR2=150,15,IF(VAR3=-20
3、0 AND VAR2=-150,-15,0)+30;VAR2E:=VAR1A48 AND VAR2C30 AND VAR8100;VAR2F:=VAR1A30 AND VAR8100;DRAWTEXT(VAR2E AND COUNT(VAR2E,30)=1,50,短线反弹2),COLORRED;STICKLINE(VAR2E AND COUNT(VAR2E,30)=1,30,50,5,0),COLORRED;DRAWTEXT(VAR2F AND COUNT(VAR2F,30)=1,50,短线高点2),COLORFFCC66;STICKLINE(VAR2F AND COUNT(VAR2F,30)
4、=1,30,50,5,0),COLORFFCC66;VAR3D:=IF(VAR3=200 AND VAR2=-200 AND VAR2=-150,15,VAR5);VAR3E:=VAR3D0 AND VAR8100;VAR3F:=VAR1A48 AND VAR3D0 AND VAR8100;DRAWTEXT(VAR790 AND VAR2+VAR3=0 AND VAR3F AND COUNT(VAR3F,30)=1,20,短线反弹3),COLORRED;STICKLINE(VAR790 AND VAR2+VAR3=0 AND VAR3F AND COUNT(VAR3F,30)=1,20,0,5
5、,0),COLORRED;DRAWTEXT(VAR3E AND COUNT(VAR3E,30)=1,20,短线高点3),COLORFFCC66;STICKLINE(VAR3E AND COUNT(VAR3E,30)=1,20,0,5,0),COLORFFCC66;强势线:60,COLORRED;VAR9:=IF(VAR790,40,30);分界线:30,COLORFFFFFF;STICKLINE(FILTER(VAR1B=45,5),-20,-10,5,0),COLORFFFFFF;DRAWTEXT(FILTER(VAR1B=45,5),0,强支撑),COLORFFFFFF;STICKLINE
6、(FILTER(VAR1B=75,5),75,60,5,0),COLORFFFFFF;DRAWTEXT(FILTER(VAR1B=75,5),75,高压),COLORFFFFFF;STICKLINE(PJX=70,85,80,12,0),COLORGREEN;DRAWTEXT(FILTER(VAR50,5),30,),COLORFFCC66;多空预警:0,COLORFFCC66;IF(VAR9=40 AND VAR2=0 AND VAR3=0,多空预警,DRAWNULL),LINETHICK2,COLORGREEN;IF(VAR9=40 AND VAR2=0 AND VAR3=0,多空预警,DRAWNULL),LINETHICK2,COLORRED;