A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
SHORT:=7; LONG:=19;
RMA:=EMA(CLOSE,7);
NMA:=EMA(CLOSE,19);
AS:=LLV(L,BARSLAST(CROSS(NMA,RMA))+1);
AD:=HHV(H,BARSLAST(CROSS(RMA,NMA))+1);
UP:=DRAWLINE(L=AS,-92,H=AD,-10,0);
DOWN1:=DRAWLINE(H=AD,-10,L=AS,-92,0);
买进1:=((LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2))))*-10,COLORRED,LINETHICK5;
买进(LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2))) AND REF(DOWN1,1)<REF(DOWN1,2) AND UP>REF(DOWN1,1))*-90,COLORRED,LINETHICK5;
|