地线:MA(REF(LLV(C,30),1),2),COLORRED,LINETHICK3;天线:MA(REF(HHV(C,30),1),2),COLORGREEN,,LINETHICK3;N5:=7;LC:=REF(CLOSE,1);X:=SMA(MAX(CLOSE-LC,0),N5,1)/SMA(ABS(CLOSE-LC),N5,1)*100,COLORYELLOW,LINETHICK1;卖出:=DRAWLINE(X>=HHV(X,N5),X,X<=LLV(X,N5),X,1),COLOR00FF00;买入:=DRAWLINE(X>=HHV(X,N5),X,X<=LLV(X,N5),1,X),COLOR00FF00;TJ0:=X=买入;TJ1:=X=卖出;TJ2:=X编写条件: