DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
(资料图片仅供参考)
JC:=CROSS(DIF,DEA) AND DIF<0;
JT:=SUMBARS(JC,2);
SC:=CROSS(DEA,DIF);
ST:=BARSLAST(SC);
D1:=LLV(DIF,ST+1);
D2:=REF(D1,JT-1);
L1:=LLV(L,ST+1);
L2:=REF(L1,JT-1);
XG:JC AND L1D2 AND EVERY(DEA<0,JT);