N1:=6;
LC:=REF(C,1);
LO:=REF(O,1);
LH:=REF(H,1);
LL:=REF(L,1);
D3:=SMA(MAX(H-LH,0),N1,1)/SMA(Abs(H-LH),N1,1)*100;
抄底:IF(crOSS(D3,EMA((((2*C+H+L)/4)-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,8)) AND SMA(MAX(H-LH,0),N1,1)/SMA(ABS(H-LH),N1,1)*100<53,20,1),COLORRED;