*1 macd 先金叉
*2 macd 金叉后股价回踩12日线发出信号
源码如下:
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
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;
A:=LLV(L,120);
T:=BARSLAST(A);
XG:REF(J,T)>LLV(J,120) AND REF(DEA,T)>LLV(DEA,120) AND L<=LLV(L,120);
642133611.jpg
642222361.jpg
|