VAR1:=(CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100;
VAR2:=SMA(VAR1,20,1);
VAR3:=SMA(VAR2,15,1);
VAR4:=100-3*VAR2+2*VAR3;
VAR5:=IF(VAR4>REF(VAR4,1),VAR4,VAR4-5);
VAR6:=HHV(HIGH,25);
VAR7:=LLV(LOW,25);
VAR8:=EMA((CLOSE-VAR7)/(VAR6-VAR7)*100,5);
VAR9:=VAR4>VAR5 AND VAR8>=REF(VAR8,1);
VAR10:=VAR4>VAR5;
VAR11:=MAX(CLOSE,EMA(CLOSE, 13));
VAR12:=REF(C,1);
VAR13:=HHV(VAR12,2);
VAR14:=REF(VAR13,1);
VAR15:=LLV(VAR12,2);
VAR16:=REF(VAR15,1);
VAR17:=BARSLAST(C< VAR15 AND VAR12>=VAR16);
VAR18:=REF(VAR17,1);
VAR19:=BARSLAST(C>VAR13 AND VAR12<=VAR14);
VAR20:=REF(VAR19,1);
VAR21:=IF(VAR17-VAR19>0 AND VAR18<=VAR20,1,IF(VAR19-VAR17>0 AND VAR20<=VAR18,0,2));
VAR22:=MAX(CLOSE, VAR11);
VAR23:=MIN(CLOSE, VAR22);
VAR24:=VAR21=1;
VAR25:=VAR23>=REF(VAR23,1) AND VAR23=VAR22;
VAR26:=VAR23=VAR22;
蓝色空仓阶段:STICKLINE(VAR8,0,2,10,0),COLORBLUE;
短线持仓阶段:STICKLINE(VAR9 AND VAR25,0,2,10,0),COLORRED;
中线上涨趋势:STICKLINE(VAR10 AND VAR26,0,1,10,0),COLORGREEN;
DRAWTEXT((VAR9 AND VAR25) AND REF((VAR9 AND VAR25),1)=0,1.5,'关注'),COLORYELLOW;
DRAWICON(VAR24 AND VAR9 AND VAR25 ,2,5);