{开门大吉}
VAR1:=REF(CLOSE,1)<REF(OPEN,1) AND REF(OPEN,1)<REF(MA(CLOSE,5),2) AND REF(CLOSE,2)<REF(MA(CLOSE,5),2) AND REF(OPEN,2)<REF(MA(CLOSE,5),2) AND REF(CLOSE,1)<REF(CLOSE,2);
VAR2:=REF(CLOSE,1);
VAR3:=SMA(MAX(CLOSE-VAR2,0),5,1)/SMA(ABS(CLOSE-VAR2),5,1)*100;
VAR4:=80;
VAR5:=70;
VAR6:=30;
VAR7:=20;
VAR8:=REF(HIGH,1)<REF(MA(CLOSE,5),1) AND REF(OPEN,1)/REF(MA(CLOSE,5),1)<0.99 AND REF(OPEN,1)/REF(MA(CLOSE,5),2)<0.96;
VAR9:=REF(HIGH,1)/REF(OPEN,1)<1.02 AND REF(LOW,1)/REF(CLOSE,1)<0.98 AND OPEN<MA(CLOSE,5) AND MA(CLOSE,5)<MA(CLOSE,14);
开门红:VAR1 AND REF(VAR3,1)<80 AND REF(VAR3,1)>20 AND VAR8 AND VAR9 AND OPEN<REF(OPEN,1) AND OPEN/REF(CLOSE,1)>0.98 AND LOW<REF(CLOSE,1),COLORRED,LINETHICK3;