MID := (H+L+C)/3;
VAR1:=SUM(MAX(0,HIGH-REF(MID,1)),5)/SUM(MAX(0,REF(MID,1)-L),5)*100;
雅薇:EMA(VAR1,3)-3,COLORRED;
VAR2:=REF(MA(VAR1,20),20/2.5+1);
雅婷:EMA(VAR2,10);
XX1:=CROSS(雅薇,雅婷);
XX2:=(HSL =1.8 AND HSL =7.8) OR (REF(HSL,1) =2.8);
XX3:=VOL/HHV(VOL,30) =0.5 OR REF(VOL,1)/HHV(VOL,30) =0.5;
XX:=XX1 AND XX2 AND XX3 AND 雅婷 =140 AND CLOSE/MA(CLOSE,120) =1.30;
VAR8:=LOW=LLV(LOW,60);
VAR9:=雅薇 LLV(雅薇,60);
WW:=VAR8 AND VAR9 AND 雅婷 =REF(雅婷,1) AND Y1 =15 AND 雅薇/雅婷 =0.94 ;
JJ:=雅薇
火眼:IF(XX, 80, 0),STICK;
地眼:IF(JJ, 80, 0),STICK;
背驰:STICKLINE(WW,200,205,10,0),COLORGREEN;
买入警戒:STICKLINE(雅薇 50 AND 雅婷 100,0,5,10,0),COLORYELLOW;
卖出警戒:STICKLINE(雅婷 200,200,210,10,0),COLORRED;
警戒:STICKLINE(雅薇 185,200,200,10,0),COLORCYAN;
测顶线:=(-0.01)*EMA((LLV(LOW,0)/AMOUNT*3.15-MA(CLOSE,180)/
COUNT(CLOSE OPEN,20)*EXP(CLOSE)*10)/500000000,20);
DRAWTEXT(测顶线 REF(测顶线,1)*1.25,100,'卖');