VAR3:=(CLOSE-MA(CLOSE,9))/MA(CLOSE,9)*500;
VAR4:=(CLOSE-MA(CLOSE,27))/MA(CLOSE,27)*500;
VAR5:=(CLOSE-MA(CLOSE,36))/MA(CLOSE,36)*500;
VAR6:=(VAR3+VAR4+VAR5)/3;
VAR7:=EMA(VAR6,27);
指标: EMA(EMA(VAR3,20),25)*500,colorred,LINETHICK0;
指标1:=EMA(指标,90);
STICKLINE(指标>0 AND 指标>指标1,指标,VAR7,1.2,0),colorred;
STICKLINE(指标>0 AND 指标<指标1,指标,VAR7,1.0,0),colorblue;
STICKLINE(指标<0 AND 指标<指标1,指标,VAR7,1.0,0),colorblue;
STICKLINE(指标<0 AND 指标>指标1,指标,VAR7,1.2,0),colorred;
VAR8:=IF(VAR6<=-20,10,0);
VAR9:=HHV(VAR8,10);
STICKLINE(VAR8=10,20,10,5,0),COLOR6666FF;
VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
K:EMA(VAR7,39)*100, colorwhite;
D:EMA(K,39), colorcyan;
J:K*3-D*2, coloryellow;
VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;
DRAWTEXT(VARA=20 AND 指标>指标1,J,'底部'),colormagenta;
STICKLINE((VARA=20),0,-20,5,0),colormagenta;
VARC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG
(3,5),2)<=REF(ZIG(3,5),3));
VARD:=(ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG
(3,5),2)>=REF(ZIG(3,5),3));
趋线1:EMA(100*(C-LLV(LOW,50))/(HHV(H,50)-LLV(LOW,50)),510)-50,colorwhite,LINETHICK0;
警戒线: 40,colorblue,LINETHICK1;
卖出线: 50,colorgreen,LINETHICK1;
趋势: 3*SMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,45,1)-2*SMA(SMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,45,1),45,1)-50,colorred,LINETHICK0;
底部: -40,LINETHICK1;
底线: -50,LINETHICK1,colorred;
买入警戒1: IF(趋势<=-45 AND 趋线1<0,30,指标),colorred,LINETHICK2;
买入警戒2: IF(趋势<=-40 AND 趋线1>0 AND 趋线1<30,20,指标),colorred,LINETHICK4;
卖出警戒: IF(趋势>=40 AND 趋线1<0,指标+20,0),colorgreen,LINETHICK3;
卖出警戒4: IF(趋势>=35 AND 趋线1<0,指标+20,0),colorblue,LINETHICK3;
卖出警戒1: IF(趋势>=45 AND 趋线1>0,指标+20,0),colorblue,LINETHICK3;
卖出警戒2: IF(趋势>=40 AND 趋线1>0,指标+20,0),colorcyan,LINETHICK3;
卖出警戒3: IF(趋势>=35 AND 趋线1>0,指标+20,0),colorwhite,LINETHICK3;
VAR1BS:=(HIGH+LOW+CLOSE)/3;
VAR2B:=(VAR1BS-MA(VAR1BS,20))/(0.015*AVEDEV(VAR1BS,20));
VAR3B:=(VAR1BS-MA(VAR1BS,110))/(0.015*AVEDEV(VAR1BS,110));
VAR4B:=IF(VAR2B>=180 AND VAR2B<230 AND VAR3B>=180 AND VAR3B<230 AND 趋线1<0,-50,0),LINETHICK1,colorblue;
VAR5B:=IF(VAR2B<=-200 AND VAR2B>-230 AND VAR3B<=-50 AND VAR3B>-230 AND 趋线1<0,50,0);
天线:IF(BARSCOUNT(CLOSE)<95,100,IF(VAR3B>=229 AND VAR2B>=229 AND 趋线1<0,-100,VAR4B)+50),LINETHICK3,colorgreen;
STICKLINE((VARC=1) AND 趋势>-35,(-60),J,6,0),coloryellow;
DRAWTEXT((VARC=1) AND 趋势>-35,D,'必买'),colorred;
STICKLINE((VARD=1) AND 趋势<35,100,J,6,0),colorwhite;
DRAWTEXT((VARD=1) AND 趋势<35,D,'必卖'),colorgreen;
DRAWTEXT(CROSS(0,趋线1),45,'转弱转弱'),colorblue;
DRAWTEXT(CROSS(趋线1,0),-25,'转强转强'),colorwhite;
DRAWTEXT(CROSS(0,趋线1) AND 趋势>-30 AND 趋势<趋线1,25,'先跑先跑'),colorgreen;
DRAWTEXT(CROSS(趋线1,趋势) AND 趋线1<0 AND 指标<指标1,20,'必须跑'),colorwhite;
DRAWTEXT(CROSS(趋势,趋线1) AND 趋线1>0 AND 指标>0,D-5,'放心买点'),colorred;
DRAWTEXT(CROSS(趋势,趋线1) AND 趋线1<0,D-5,'买点'),colorred;