DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=(DIFF-DEA)*2;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
MD1:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
VAR1:=REF(CLOSE,1);
VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;
MD2:=0.5*FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5);
CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
MD3:=IF((EMA(CS,2))*2>REF((EMA(CS,2))*2,1) AND REF((EMA(CS,2))*2,1)
*2<26,1.6,0);
BIAS1:=(C-MA(C,6))/MA(C,6)*100;
BIAS2:=(C-MA(C,12))/MA(C,12)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3);
MD4:=CROSS(BIAS,乖离) AND 乖离<-9.4;
二合一:=MD1 AND (MD2 OR MD3 OR MD4);
三合一:=MD1 AND MD2 AND MD4;
四合一:=MD1 AND MD2 AND MD3 AND MD4;
XG:二合一 OR 三合一 OR 四合一;
这样改一改可以用,但没有原来的好用,因为大智慧不支持DCLOSE函数。