N:=6;LH:=80; Var1:=REF(CLOSE,1); Var2:=SMA(MAX(CLOSE-Var1,0),N,1)/SMA(ABS(CLOSE-Var1),N,1)*100; 卖出: CROSS(LH,Var2);