VAR1:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(EMA(C,30),EMA(C,35)),EMA(C,40)),EMA(C,45)),EMA(C,90)),EMA(C,98)),EMA(C,106)),EMA(C,114)),EMA(C,140)),EMA(C,148)),EMA(C,156)),EMA(C,164));
VAR2:=MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(EMA(C,30),EMA(C,35)),EMA(C,40)),EMA(C,45)),EMA(C,90)),EMA(C,98)),EMA(C,106)),EMA(C,114)),EMA(C,140)),EMA(C,148)),EMA(C,156)),EMA(C,164));
VAR3:=(EMA((H+L+3*C)/5,20)+EMA((H+L+3*C)/5,30)+EMA((H+L+3*C)/5,40)+EMA((H+L+3*C)/5,50))/4;
VAR4:=IF(INBLOCK(1),0.2,IF(INBLOCK(2),0.2,IF(INBLOCK(3),0.05,0.1)));
VAR5:=EMA(C,114)>EMA(C,148) AND C>VAR1;
VAR6:=((H+L+C)/3-MA((H+L+C)/3,89))/(0.015*AVEDEV((H+L+C)/3,89));
VAR7:=BARSLAST(CROSS(MA(C,5),MA(C,10)));
VAR8:=(C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100;
VAR9:=BARSLAST(CROSS(20,SMA(SMA(VAR8,3,1),3,1)));
VAR10:=VAR4>0.06 AND VAR5 AND C/REF(C,1)>1.02 AND VAR1/VAR2<1.2;
VAR16:=VAR10 AND VAR7<5 AND SMA(SMA(VAR8,3,1),3,1)<60 AND VAR9<20;
VAR18:=VAR10 AND VAR1/VAR2<1.15 AND C/REF(C,1)>1.05 AND SMA(SMA(VAR8,3,1),3,1)<70 AND VAR6>=HHV(VAR6,5);
DRAWTEXT_FIX(C>O,0.01,0.01,0,' 股票指标网'),COLOR333333;
NOTEXT3:EMA(VAR3,16),DOTLINE,COLORGREEN;
NOTEXT4:EMA(VAR3,16+13),DOTLINE,COLORGREEN;
NOTEXT5:EMA(VAR3,16+26),DOTLINE,COLORGREEN;
NOTEXT6:EMA(VAR3,16+39),DOTLINE,COLORGREEN;
NOTEXT7:EMA(VAR3,16+52),DOTLINE,COLORGREEN;
NOTEXT8:EMA(VAR3,16+65),LINETHICK2,COLORGREEN;
NOTEXT3X:IF(NOTEXT3>REF(NOTEXT3,1),NOTEXT3,DRAWNULL),DOTLINE,COLORMAGENTA;
NOTEXT4X:IF(NOTEXT4>REF(NOTEXT4,1),NOTEXT4,DRAWNULL),DOTLINE,COLORMAGENTA;
NOTEXT5X:IF(NOTEXT5>REF(NOTEXT5,1),NOTEXT5,DRAWNULL),DOTLINE,COLORMAGENTA;
NOTEXT6X:IF(NOTEXT6>REF(NOTEXT6,1),NOTEXT6,DRAWNULL),DOTLINE,COLORMAGENTA;
NOTEXT7X:IF(NOTEXT7>REF(NOTEXT7,1),NOTEXT7,DRAWNULL),DOTLINE,COLORMAGENTA;
NOTEXT8X:IF(NOTEXT8>REF(NOTEXT8,1),NOTEXT8,DRAWNULL),LINETHICK2,COLORMAGENTA;
DRAWTEXT_FIX(C>O,0,0.07,0,'VAR16:VAR18'),COLORMAGENTA;
STICKLINE(EMA(VAR3,5)>=REF(EMA(VAR3,5),1),EMA(VAR3,5),EMA(VAR3,8),4,0),COLORMAGENTA;
STICKLINE(EMA(VAR3,5)<REF(EMA(VAR3,5),1),EMA(VAR3,5),EMA(VAR3,8),4,0),COLORGREEN;
DRAWKLINE(H,O,L,C);
DRAWICON(VAR16 OR VAR18,L*0.98,9);