TRV:=EMA(MAX(MAX(HIGH-LOW,Abs(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),12);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EMA(IF(HD>0 and HD>LD,HD,0),12);
DMM:=EMA(IF(LD>0 and LD>HD,LD,0),12);
pdi:= DMP*100/TRV;
mdi:= DMM*100/TRV;
ADX:= EMA(ABS(MDI-PDI)/(MDI+PDI)*100,2);
ADXR:=EMA(ADX,2);
adxsc:=cross(adxr,adx) and pdi>ref(pdi,1);
{-股票公式网站 }
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
jj:=cross(j,k);
vv:=count(v<ref(v,1),5)>=2 and ref(v,1)=llv(v,3) and v>ref(v,1);
ma3:=ma(c,3);ma5:=ma(c,5);
pl:=abs(ma3-ma5)/ma3*100<3;
c>ma3 and adxsc and jj and pl