XJ:=(A+0.618*REF(A,1)+0.382*REF(A,2)+0.236*REF(A,3)+0.146*REF(A,4))/2.382;
LX:=REF(XJ,1);
ZD0:=(SMA(MAX(XJ-LX,0),5,1)/SMA(ABS(XJ-LX),5,1))*100;
MA2:EMA(C,1000)+(ZD0/100),colorred;
HM2:=HHV(MA2,2),colorred;
DRAWBAND(MA2,RGB(255,0,0),HM2,RGB(0,255,0));
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;
J1:=REVERSE(J);
AA:=REF(MA(C,1),10)>REF(MA(C,60),10);
买点:=CROSS(J,J1) AND AA;
DRAWTEXT(买点,HM2,'★庄家出现'),colorred;