SHORT:=6; { DIF:=EMA(CLOSE,6)-EMA(CLOSE,13);
LONG:=13;
MID:=5;
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIF,MID);
macd:(DIF-DEA)*2,COLORSTICK;
A:=BArslAST(FILTERX(MacD=HHV(MACD,BARSLAST(MACD<0)),BARSLAST(MACD<0)));
B:=REF(MACD,A);
TT:=A+1;
ZTT:=REF(TT,TT)+TT;
KK:=REF(MACD,ZTT-1);
IF(CURRBARSCOUNT
选股公式:
DEA:=EMA(DIF,5);
AA:=crOSS(DIF,DEA);
RSV:=(CLOSE-LLV(LOW,39))/(HHV(HIGH,39)-LLV(LOW,39))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
BB:=CROSS(J,K);
XG:AA AND BB;
}