VAR1:=REF(CLOSE,1);
VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;
VAR3:=(C-MA(C,6))/MA(C,6)*100;
VAR4:=(C-MA(C,12))/MA(C,12)*100;
VAR5:=(C-MA(C,24))/MA(C,24)*100;
VAR6:=(VAR3+2*VAR4+3*VAR5)/6;
VAR7:=MA(VAR6,3);
VAR8:=EMA((CLOSE-LLV(LOW,10))/(HHV(HIGH,25)-LLV(LOW,10))*4,4)/10;
VAR9:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
VAR10:=HIGH-REF(HIGH,1);
VAR11:=REF(LOW,1)-LOW;
VAR12:=SUM(IF(VAR10>0 AND VAR10>VAR11,VAR10,0),14);
VAR13:=SUM(IF(VAR11>0 AND VAR11>VAR10,VAR11,0),14);
VAR14:=VAR12*100/VAR9;
VAR15:=VAR13*100/VAR9;
VAR16:=MA(ABS(VAR15-VAR14)/(VAR15+VAR14)*100,6);
VAR17:=(VAR16+REF(VAR16,6))/2;
VAR18:=VAR14>33 AND VAR15<10 AND VAR16>40 AND VAR17>45;
VAR19:=HHV(VAR8,4)>0.38 OR VAR8>0.25 AND VAR18;
VAR20:=IF(VAR18=0 AND HHV(VAR18,5)>0,-0.5,0);
VAR27:=IF(VAR19=1 AND H-C>C-L AND V>HHV(V,20)/2 AND C<O*1.01,-0.75,0);
VAR28:=IF(VAR19=0 AND HHV(VAR19,3)>0,-1,0);
FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5),LINETHICK2,COLORWHITE;
STICKLINE(CROSS(VAR6,VAR7) AND VAR7<-9.5,0.85,0,1,0),COLORRED;
遇警:IF(VAR27=-0.75,-0.75,IF(VAR28<0,-1,IF(VAR19>0,1,IF(VAR20<0,-0.5,VAR18)))),COLORSTICK;
操盘手:IF(VAR27=-0.75,-0.75,IF(VAR28<0,-1,IF(VAR19>0,1,IF(VAR20<0,-0.5,VAR18)))),LINETHICK1,COLORFFFF80;
DRAWTEXT_FIX(1,0.5,0.001,0,'浅蓝线区逢高卖出'),COLOR0078FF;