A1:=EMA(CLOSE,7)-EMA(CLOSE,21); B1:=EMA((0.668*REF(A1,1)+0.333*A1),1); 多:IF(A1>=B1,A1,B1),LINETHICK2,COLORRED; 空:IF(B1-A1,B1,A1),LINETHICK2,COLORGREEN; VAR1:=crOSS(多,空) AND 多-空=0; 持币:IF((多-空=0),1,0),COLORGREEN,POINTDOT; 持股:IF((多-空>0),1,0),COLORRED,POINTDOT; 买值:多-空; 卖值:空-多;