VAR1:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),5);
VAR2:=EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),5);
VAR3:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),1);
VAR4:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),1);
尾盘买入:crOSS(VAR1,VAR2) AND VAR3>50 AND VAR4<80;