MA5:=MA(C,5);
EMA10:=MA(C,10);
EMA30:=MA(C,30);
HY1:=CROSS(MA5,EMA10);
HY2:=CROSS(MA5,EMA30);
HY3:=CROSS(EMA10,EMA30);
XG:=HY1 OR HY2 OR HY3;
LWH:=100*(HHV(HIGH,42)-CLOSE)/(HHV(HIGH,42)-LLV(LOW,42));
N:=34;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
主力:=EMA(J,6);
主上穿散:=CROSS(主力,LWH);
跟庄抓牛:主上穿散 AND XG;