A1:=1-(HHV(A0,2)-LLV(A0,2))/(HHV(A0,2)+LLV(A0,2)); A2:=SUM(CLOSE+OPEN+HIGH+LOW,42); 金叉入场:SUM(IF(A2 REF(A2,1),DMA(A1,A0),IF(A2 REF(A2,1),-DMA(A1,A0),0)),0),LINETHICK2,colorFF00FF; 死叉离场:SUM(LLV(金叉入场,3),9)/9,LINETHICK2,colorFFFFFF;